Fastest and only macOS Dictation app with on-device STT and custom trained AI enhancement model. Windows, iOS testflight! Android, Linux waitlist open! A local Wispr Flow alternative. Follow https://x.com/fluidvoiceapp for more
fix: preserve local api postprocessing
altic-dev149d77925825
diff --git a/Sources/Fluid/Services/DictationPostProcessingService.swift b/Sources/Fluid/Services/DictationPostProcessingService.swiftindex ced00f58..c3382cd3 100644--- a/Sources/Fluid/Services/DictationPostProcessingService.swift+++ b/Sources/Fluid/Services/DictationPostProcessingService.swift@@ -95,6 +95,19 @@ struct DictationProviderRoute: Equatable {)}+ static func resolveForPostProcessing(+ settings: SettingsStore,+ dictationSlot: SettingsStore.DictationShortcutSlot+ ) -> Self {+ if settings.dictationPromptSelection(for: dictationSlot) == .privateAI {+ return self.privateAIRoute(settings: settings)+ }+ if settings.promptRoutingScope(for: .dictate) == .selectedAppsOnly {+ return self.resolve(settings: settings)+ }+ return self.resolve(settings: settings, dictationSlot: dictationSlot)+ }+private static func effectivePromptSelection(settings: SettingsStore,dictationSlot: SettingsStore.DictationShortcutSlot,@@ -138,7 +151,10 @@ final class DictationPostProcessingService {}let settings = SettingsStore.shared- let resolved = DictationProviderRoute.resolve(settings: settings, dictationSlot: dictationSlot)+ let resolved = DictationProviderRoute.resolveForPostProcessing(+ settings: settings,+ dictationSlot: dictationSlot+ )guard !resolved.providerID.trimmingCharacters(in: .whitespacesAndNewlines).isEmpty else {throw AIProcessingError.noVerifiedProvider}diff --git a/Tests/FluidDictationIntegrationTests/DictationE2ETests.swift b/Tests/FluidDictationIntegrationTests/DictationE2ETests.swiftindex 775c155f..ae31a5d3 100644--- a/Tests/FluidDictationIntegrationTests/DictationE2ETests.swift+++ b/Tests/FluidDictationIntegrationTests/DictationE2ETests.swift@@ -1682,6 +1682,32 @@ final class DictationE2ETests: XCTestCase {}}+ func testPostProcessingRouteUsesGlobalProviderWithoutAppContext() {+ self.withRestoredDefaults(+ keys: [+ self.dictationPromptRoutingScopeKey,+ self.selectedProviderIDKey,+ self.selectedModelByProviderKey,+ self.dictationPromptOffKey,+ self.selectedDictationPromptIDKey,+ ]+ ) {+ let settings = SettingsStore.shared+ settings.dictationPromptRoutingScope = .selectedAppsOnly+ settings.selectedProviderID = "openai"+ settings.selectedModelByProvider = ["openai": "gpt-4.1"]+ settings.setDictationPromptSelection(.default, for: .primary)++ let route = DictationProviderRoute.resolveForPostProcessing(+ settings: settings,+ dictationSlot: .primary+ )++ XCTAssertEqual(route.providerID, "openai")+ XCTAssertEqual(route.model, "gpt-4.1")+ }+ }+func testPrivateAIProviderDictationPromptSelection_allowsOffAndRestoresNonFluidPrompt() {self.withPromptAndProviderSettingsRestored {let settings = SettingsStore.shared