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(settings): rename ai enhancement copy
altic-dev21df6c7ec20e
diff --git a/Sources/Fluid/ContentView.swift b/Sources/Fluid/ContentView.swiftindex c5943649..7d7570ab 100644--- a/Sources/Fluid/ContentView.swift+++ b/Sources/Fluid/ContentView.swift@@ -959,7 +959,7 @@ struct ContentView: View {.listRowBackground(self.sidebarRowBackground(for: .voiceEngine))NavigationLink(value: SidebarItem.aiEnhancements) {- Label("AI Enhancements", systemImage: "brain")+ Label("AI Enhancement", systemImage: "brain").font(.system(size: 15, weight: .medium)).padding(.leading, 18)}@@ -1578,7 +1578,7 @@ struct ContentView: View {return self.buildSystemPrompt(appInfo: appInfo, dictationSlot: dictationSlot)}()- // Dictation cleanup folds the prompt + transcript into a single user+ // Dictation enhancement folds the prompt + transcript into a single user// turn (substituting `${transcript}` when present, otherwise appending// the transcript after a blank line). Non-dictation callers — the AI// chat tab specifically — keep the legacy two-message layout where@@ -1631,7 +1631,7 @@ struct ContentView: View {}self.logDictationPromptTrace("Selected context text", value: "<none (dictation mode)>")}- DebugLogger.shared.debug("Using Apple Intelligence for transcription cleanup", source: "ContentView")+ DebugLogger.shared.debug("Using Apple Intelligence for transcription enhancement", source: "ContentView")let output = try await provider.process(systemPrompt: systemPrompt, userText: userMessageContent)if self.shouldTracePromptProcessing {self.logDictationPromptTrace("Model answer (A)", value: output)@@ -1710,7 +1710,7 @@ struct ContentView: View {)}- // Build messages array. For dictation cleanup the whole prompt ++ // Build messages array. For dictation enhancement the whole prompt +// transcript is folded into a single user message, so we omit the// (empty) system role. Non-dictation callers keep the legacy// system + user shape.@@ -1722,7 +1722,7 @@ struct ContentView: View {// NOTE: Transcription doesn't need streaming - the full result appears at once// Streaming is only useful for Command/Rewrite modes where real-time display helps- // Using non-streaming is simpler and more reliable for transcription cleanup+ // Using non-streaming is simpler and more reliable for transcription enhancementlet enableStreaming = false // Hardcoded off for transcription// Build LLMClient configurationdiff --git a/Sources/Fluid/Networking/AppleIntelligenceProvider.swift b/Sources/Fluid/Networking/AppleIntelligenceProvider.swiftindex 59cebfef..978a654f 100644--- a/Sources/Fluid/Networking/AppleIntelligenceProvider.swift+++ b/Sources/Fluid/Networking/AppleIntelligenceProvider.swift@@ -43,7 +43,7 @@ enum AppleIntelligenceService {#if canImport(FoundationModels)@available(macOS 26.0, *)final class AppleIntelligenceProvider {- /// Process text with a system prompt (for transcription cleanup)+ /// Process text with a system prompt (for transcription enhancement)func process(systemPrompt: String, userText: String) async throws -> String {let session = LanguageModelSession()diff --git a/Sources/Fluid/Persistence/SettingsStore.swift b/Sources/Fluid/Persistence/SettingsStore.swiftindex 4aee92d5..429c585e 100644--- a/Sources/Fluid/Persistence/SettingsStore.swift+++ b/Sources/Fluid/Persistence/SettingsStore.swift@@ -235,7 +235,7 @@ final class SettingsStore: ObservableObject {let systemPrompt: String}- /// User-defined dictation prompt profiles (named system prompts for dictation cleanup).+ /// User-defined dictation prompt profiles (named system prompts for dictation enhancement)./// The built-in default prompt is not stored here.var dictationPromptProfiles: [DictationPromptProfile] {get {@@ -972,10 +972,10 @@ final class SettingsStore: ObservableObject {}/// Literal placeholder that gets substituted with the raw transcription- /// when composing the user message for a dictation cleanup call.+ /// when composing the user message for a dictation enhancement call.static let transcriptPlaceholder = "${transcript}"- /// Compose the user-turn string for a dictation cleanup call by folding+ /// Compose the user-turn string for a dictation enhancement call by folding/// the transcript into the prompt template. If the template contains the/// `${transcript}` placeholder, the placeholder is replaced; otherwise/// the transcript is appended after a blank line, matching the pre-PRdiff --git a/Sources/Fluid/Services/NotificationService.swift b/Sources/Fluid/Services/NotificationService.swiftindex 8beee2e9..8436348a 100644--- a/Sources/Fluid/Services/NotificationService.swift+++ b/Sources/Fluid/Services/NotificationService.swift@@ -42,7 +42,7 @@ enum NotificationService {private static func deliverAIProcessingFallback(error: String, using center: UNUserNotificationCenter) {let content = UNMutableNotificationContent()- content.title = "AI cleanup failed"+ content.title = "AI Enhancement failed"content.body = "Typed raw transcription instead."content.subtitle = errorcontent.sound = nildiff --git a/Sources/Fluid/UI/AISettingsView+AIConfiguration.swift b/Sources/Fluid/UI/AISettingsView+AIConfiguration.swiftindex 2a3d15b0..8e8bb6c5 100644--- a/Sources/Fluid/UI/AISettingsView+AIConfiguration.swift+++ b/Sources/Fluid/UI/AISettingsView+AIConfiguration.swift@@ -126,11 +126,11 @@ extension AIEnhancementSettingsView {.frame(width: 34, height: 34)VStack(alignment: .leading, spacing: 2) {- Text("AI Enhancements")+ Text("AI Enhancement").font(.title3).fontWeight(.semibold).foregroundStyle(self.theme.palette.primaryText)- Text("Choose the model used for AI Cleanup.")+ Text("Choose the model used for AI Enhancement.").font(.caption).foregroundStyle(self.theme.palette.secondaryText)}@@ -146,13 +146,13 @@ extension AIEnhancementSettingsView {self.aiSetupSummaryDividerself.aiSetupSummaryItem(icon: "cloud", text: "Cloud models use provider APIs")self.aiSetupSummaryDivider- self.aiSetupSummaryItem(icon: "slider.horizontal.3", text: "AI Cleanup enables dictation prompts")+ self.aiSetupSummaryItem(icon: "slider.horizontal.3", text: "AI Enhancement enables dictation prompts")}VStack(alignment: .leading, spacing: 7) {self.aiSetupSummaryItem(icon: "cpu", text: "Local models run on Mac")self.aiSetupSummaryItem(icon: "cloud", text: "Cloud models use provider APIs")- self.aiSetupSummaryItem(icon: "slider.horizontal.3", text: "AI Cleanup enables dictation prompts")+ self.aiSetupSummaryItem(icon: "slider.horizontal.3", text: "AI Enhancement enables dictation prompts")}}.padding(.horizontal, 2)diff --git a/Sources/Fluid/UI/AISettingsView+AdvancedSettings.swift b/Sources/Fluid/UI/AISettingsView+AdvancedSettings.swiftindex c117ce41..120697f0 100644--- a/Sources/Fluid/UI/AISettingsView+AdvancedSettings.swift+++ b/Sources/Fluid/UI/AISettingsView+AdvancedSettings.swift@@ -185,7 +185,7 @@ extension AIEnhancementSettingsView {let isOff = self.viewModel.isPrimaryDictationPromptSelectionOff()return HStack(alignment: .center, spacing: 7) {- Text("AI Cleanup")+ Text("AI Enhancement").font(.system(size: 12, weight: .semibold)).foregroundStyle(self.theme.palette.secondaryText).lineLimit(1)@@ -423,7 +423,7 @@ extension AIEnhancementSettingsView {private func promptRoutingScopeRow(mode: SettingsStore.PromptMode) -> some View {HStack(alignment: .center, spacing: 10) {- Text(mode.normalized == .dictate ? "Use cleanup" : "Use prompts")+ Text(mode.normalized == .dictate ? "Use AI" : "Use prompts").font(.system(size: 12, weight: .semibold)).foregroundStyle(self.theme.palette.secondaryText).frame(width: AISettingsLayout.promptScopeLabelWidth, alignment: .leading)@@ -505,7 +505,7 @@ extension AIEnhancementSettingsView {.frame(width: 18, height: 18)Text(mode.normalized == .dictate- ? "No default cleanup. Add app overrides to use prompts in selected apps."+ ? "No default enhancement. Add app overrides to use prompts in selected apps.": "Default edit stays built-in. App overrides can use custom prompts.").font(.caption2)diff --git a/Sources/Fluid/UI/SettingsView.swift b/Sources/Fluid/UI/SettingsView.swiftindex 10c6384e..d4eb5233 100644--- a/Sources/Fluid/UI/SettingsView.swift+++ b/Sources/Fluid/UI/SettingsView.swift@@ -660,7 +660,7 @@ struct SettingsView: View {icon: "text.bubble.fill",iconColor: .secondary,title: "Secondary Dictation Shortcut",- description: "Defaults to Default cleanup, but can use Off, Default, or any custom prompt."+ description: "Defaults to AI Enhancement, but can use Off, Default, or any custom prompt."),shortcut: self.promptModeShortcut,isRecording: self.isRecording(.secondaryDictation),@@ -807,8 +807,8 @@ struct SettingsView: View {Divider().opacity(0.2)self.optionToggleRow(- title: "Notify AI Cleanup Failures",- description: "Show a macOS notification when AI cleanup fails and raw transcription is typed.",+ title: "Notify AI Enhancement Failures",+ description: "Show a macOS notification when AI Enhancement fails and raw transcription is typed.",isOn: Binding(get: { SettingsStore.shared.notifyAIProcessingFailures },set: { SettingsStore.shared.notifyAIProcessingFailures = $0 }diff --git a/Sources/Fluid/UI/TranscriptionHistoryView.swift b/Sources/Fluid/UI/TranscriptionHistoryView.swiftindex e2738445..014fb7fe 100644--- a/Sources/Fluid/UI/TranscriptionHistoryView.swift+++ b/Sources/Fluid/UI/TranscriptionHistoryView.swift@@ -328,7 +328,7 @@ struct TranscriptionHistoryView: View {Image(systemName: "exclamationmark.triangle.fill").foregroundStyle(Color.orange)VStack(alignment: .leading, spacing: 2) {- Text("AI cleanup failed - raw transcription was typed instead")+ Text("AI Enhancement failed - raw transcription was typed instead").font(.system(size: 12, weight: .semibold))Text(aiError).font(.system(size: 11))