Skip to content

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 dictation prompt template detection

altic-dev49bf14289ad8
diff --git a/Sources/Fluid/ContentView.swift b/Sources/Fluid/ContentView.swift
index 3aa81a86..52f053e1 100644
--- a/Sources/Fluid/ContentView.swift
+++ b/Sources/Fluid/ContentView.swift
@@ -1538,9 +1538,7 @@ struct ContentView: View {
// the transcript after a blank line). Non-dictation callers — the AI
// chat tab specifically — keep the legacy two-message layout where
// the prompt is the system turn and the input is the user turn.
- let isDictationCall = overrideSystemPrompt != nil
- || dictationSlot != nil
- || self.currentDictationShortcutSlot(for: self.activeRecordingMode) != nil
+ let isDictationCall = overrideSystemPrompt != nil || dictationSlot != nil
let systemPrompt: String
let userMessageContent: String
diff --git a/Sources/Fluid/Persistence/SettingsStore.swift b/Sources/Fluid/Persistence/SettingsStore.swift
index 28ba0819..078fa95b 100644
--- a/Sources/Fluid/Persistence/SettingsStore.swift
+++ b/Sources/Fluid/Persistence/SettingsStore.swift
@@ -962,8 +962,8 @@ final class SettingsStore: ObservableObject {
/// the transcript is appended after a blank line, matching the pre-PR
/// behaviour of sending the transcript as a separate user message.
static func renderDictationUserMessage(promptText: String, transcript: String) -> String {
- if promptText.contains(transcriptPlaceholder) {
- return promptText.replacingOccurrences(of: transcriptPlaceholder, with: transcript)
+ if promptText.contains(self.transcriptPlaceholder) {
+ return promptText.replacingOccurrences(of: self.transcriptPlaceholder, with: transcript)
}
let trimmedPrompt = promptText.trimmingCharacters(in: .whitespacesAndNewlines)
if trimmedPrompt.isEmpty { return transcript }