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: Remove invalid nonisolated modifier from TranscriptionResult struct Update Parakeet TDT language support from English to 25 Languages in SettingsStore and AISettingsView to accurately reflect multilingual capability ; Removed Temperature setting for models with reasoning as they only take 1.0 ( can remove the temperature fully or add a new field for custom temp later if needed)

altic-dev8000ff695877
diff --git a/Sources/Fluid/ContentView.swift b/Sources/Fluid/ContentView.swift
index c4bc6b3d..7e0b0203 100644
--- a/Sources/Fluid/ContentView.swift
+++ b/Sources/Fluid/ContentView.swift
@@ -1228,16 +1228,25 @@ struct ContentView: View {
// Get streaming setting
let enableStreaming = SettingsStore.shared.enableAIStreaming
+ // Check if this is a reasoning model that doesn't support temperature parameter
+ let modelLower = derivedSelectedModel.lowercased()
+ let isReasoningModel = modelLower.hasPrefix("o1") || modelLower.hasPrefix("o3") || modelLower.hasPrefix("gpt-5")
+
// Build request body dynamically to support different reasoning parameters
var requestDict: [String: Any] = [
"model": derivedSelectedModel,
"messages": [
["role": "system", "content": systemPrompt],
["role": "user", "content": inputText]
- ],
- "temperature": 0.2
+ ]
]
+ // Only add temperature for non-reasoning models
+ // OpenAI reasoning models (o1, o3, gpt-5) don't support custom temperature
+ if !isReasoningModel {
+ requestDict["temperature"] = 0.2
+ }
+
// Add reasoning parameter if configured for this model
if let config = reasoningConfig, config.isEnabled {
if config.parameterName == "enable_thinking" {
diff --git a/Sources/Fluid/Networking/AIProvider.swift b/Sources/Fluid/Networking/AIProvider.swift
index c213843c..eea97471 100644
--- a/Sources/Fluid/Networking/AIProvider.swift
+++ b/Sources/Fluid/Networking/AIProvider.swift
@@ -90,6 +90,10 @@ final class OpenAICompatibleProvider: AIProvider
// Check if model is gpt-oss and add reasoning_effort parameter
let shouldAddReasoningEffort = isGptOssModel(model)
+
+ // Check if this is a reasoning model that doesn't support temperature parameter
+ let modelLower = model.lowercased()
+ let isReasoningModel = modelLower.hasPrefix("o1") || modelLower.hasPrefix("o3") || modelLower.hasPrefix("gpt-5")
let body = ChatRequest(
model: model,
@@ -97,7 +101,7 @@ final class OpenAICompatibleProvider: AIProvider
ChatMessage(role: "system", content: systemPrompt),
ChatMessage(role: "user", content: userText)
],
- temperature: 0.2,
+ temperature: isReasoningModel ? nil : 0.2, // Don't send temperature for reasoning models
reasoning_effort: shouldAddReasoningEffort ? "low" : nil,
stream: stream ? true : nil
)
diff --git a/Sources/Fluid/Networking/FunctionCallingProvider.swift b/Sources/Fluid/Networking/FunctionCallingProvider.swift
index 50b55bf9..ca348a27 100644
--- a/Sources/Fluid/Networking/FunctionCallingProvider.swift
+++ b/Sources/Fluid/Networking/FunctionCallingProvider.swift
@@ -183,10 +183,14 @@ final class FunctionCallingProvider {
var messages = conversationHistory
messages.append(ChatMessage(role: "user", content: userText))
+ // Check if this is a reasoning model that doesn't support temperature parameter
+ let modelLower = model.lowercased()
+ let isReasoningModel = modelLower.hasPrefix("o1") || modelLower.hasPrefix("o3") || modelLower.hasPrefix("gpt-5")
+
let body = ChatRequest(
model: model,
messages: messages,
- temperature: 0.2,
+ temperature: isReasoningModel ? nil : 0.2, // Don't send temperature for reasoning models
tools: tools.isEmpty ? nil : tools,
tool_choice: tools.isEmpty ? nil : "auto"
)
@@ -299,12 +303,16 @@ final class FunctionCallingProvider {
// Use conversation history as-is (tool messages should already be added by caller)
let messages = conversationHistory
+ // Check if this is a reasoning model that doesn't support temperature parameter
+ let modelLower = model.lowercased()
+ let isReasoningModel = modelLower.hasPrefix("o1") || modelLower.hasPrefix("o3") || modelLower.hasPrefix("gpt-5")
+
// Don't pass tools or tool_choice in the final response request
// Some providers (like OpenAI) reject tool_choice when tools is nil
let body = ChatRequest(
model: model,
messages: messages,
- temperature: 0.2,
+ temperature: isReasoningModel ? nil : 0.2, // Don't send temperature for reasoning models
tools: nil,
tool_choice: nil
)
diff --git a/Sources/Fluid/Persistence/SettingsStore.swift b/Sources/Fluid/Persistence/SettingsStore.swift
index 02624630..9c2363a2 100644
--- a/Sources/Fluid/Persistence/SettingsStore.swift
+++ b/Sources/Fluid/Persistence/SettingsStore.swift
@@ -801,7 +801,7 @@ final class SettingsStore: ObservableObject
var languageSupport: String {
switch self {
- case .parakeetTDT: return "English"
+ case .parakeetTDT: return "25 Languages"
case .whisperTiny, .whisperBase, .whisperSmall, .whisperMedium, .whisperLargeTurbo, .whisperLarge:
return "99 Languages"
}
diff --git a/Sources/Fluid/Services/CommandModeService.swift b/Sources/Fluid/Services/CommandModeService.swift
index 1279ab5b..d1678146 100644
--- a/Sources/Fluid/Services/CommandModeService.swift
+++ b/Sources/Fluid/Services/CommandModeService.swift
@@ -784,16 +784,21 @@ final class CommandModeService: ObservableObject {
let enableStreaming = SettingsStore.shared.enableAIStreaming
// Build request
+ // Reasoning models (o1, o3, gpt-5) don't support temperature parameter at all
let isReasoningModel = model.hasPrefix("o1") || model.hasPrefix("o3") || model.hasPrefix("gpt-5")
var body: [String: Any] = [
"model": model,
"messages": messages,
"tools": [TerminalService.toolDefinition],
- "tool_choice": "auto",
- "temperature": isReasoningModel ? 1.0 : 0.1
+ "tool_choice": "auto"
]
+ // Only add temperature for non-reasoning models
+ if !isReasoningModel {
+ body["temperature"] = 0.1
+ }
+
if enableStreaming {
body["stream"] = true
}
diff --git a/Sources/Fluid/Services/MeetingTranscriptionService.swift b/Sources/Fluid/Services/MeetingTranscriptionService.swift
index 441e8570..67f75786 100644
--- a/Sources/Fluid/Services/MeetingTranscriptionService.swift
+++ b/Sources/Fluid/Services/MeetingTranscriptionService.swift
@@ -6,7 +6,7 @@ import FluidAudio
import Combine
/// Result of a transcription operation
-nonisolated struct TranscriptionResult: Identifiable, Sendable, Codable {
+struct TranscriptionResult: Identifiable, Sendable, Codable {
let id = UUID()
let text: String
let confidence: Float
diff --git a/Sources/Fluid/Services/RewriteModeService.swift b/Sources/Fluid/Services/RewriteModeService.swift
index 3163049b..e9bc0d8d 100644
--- a/Sources/Fluid/Services/RewriteModeService.swift
+++ b/Sources/Fluid/Services/RewriteModeService.swift
@@ -180,14 +180,19 @@ final class RewriteModeService: ObservableObject {
// Check streaming setting
let enableStreaming = settings.enableAIStreaming
+ // Reasoning models (o1, o3, gpt-5) don't support temperature parameter at all
let isReasoningModel = model.hasPrefix("o1") || model.hasPrefix("o3") || model.hasPrefix("gpt-5")
var body: [String: Any] = [
"model": model,
- "messages": apiMessages,
- "temperature": isReasoningModel ? 1.0 : 0.7
+ "messages": apiMessages
]
+ // Only add temperature for non-reasoning models
+ if !isReasoningModel {
+ body["temperature"] = 0.7
+ }
+
if enableStreaming {
// TODO: Streamed text is still buffered; add incremental UI updates so write mode visibly streams.
body["stream"] = true
diff --git a/Sources/Fluid/UI/AISettingsView.swift b/Sources/Fluid/UI/AISettingsView.swift
index 2c1e43fb..bd028663 100644
--- a/Sources/Fluid/UI/AISettingsView.swift
+++ b/Sources/Fluid/UI/AISettingsView.swift
@@ -235,7 +235,7 @@ struct AISettingsView: View {
.font(.caption)
Text(SettingsStore.shared.selectedSpeechModel.isWhisperModel
? "Whisper models support 99 languages and work on any Mac."
- : "Parakeet TDT uses CoreML and Neural Engine for fastest English transcription on Apple Silicon.")
+ : "Parakeet TDT uses CoreML and Neural Engine for fastest transcription (25 languages) on Apple Silicon.")
.font(.caption)
.foregroundStyle(.secondary)
}