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

merge conflict artifacts fix

altic-dev5862acacb883
diff --git a/Sources/Fluid/Networking/FunctionCallingProvider.swift b/Sources/Fluid/Networking/FunctionCallingProvider.swift
index 31f460f0..f75c6b1e 100644
--- a/Sources/Fluid/Networking/FunctionCallingProvider.swift
+++ b/Sources/Fluid/Networking/FunctionCallingProvider.swift
@@ -20,10 +20,14 @@ final class FunctionCallingProvider {
let tool_call_id: String?
let name: String?
+ enum CodingKeys: String, CodingKey {
+ case role, content, tool_calls, tool_call_id, name
+ }
+
init(role: String, content: String?, tool_calls: [ToolCall]? = nil, tool_call_id: String? = nil, name: String? = nil) {
self.role = role
self.content = content
- self.tool_calls = tool_calls
+ self.tool_calls = tool_calls ?? []
self.tool_call_id = tool_call_id
self.name = name
}
diff --git a/Sources/Fluid/Persistence/KeychainService.swift b/Sources/Fluid/Persistence/KeychainService.swift
index 49d0e1cf..81c1262a 100644
--- a/Sources/Fluid/Persistence/KeychainService.swift
+++ b/Sources/Fluid/Persistence/KeychainService.swift
@@ -101,7 +101,7 @@ final class KeychainService {
func removeLegacyEntries(providerIDs: [String] = []) throws {
let targets: [String]
- if let providerIDs {
+ if !providerIDs.isEmpty {
targets = providerIDs
} else {
targets = try Array((self.legacyProviderEntries()).keys)
diff --git a/Sources/Fluid/UI/FeedbackView.swift b/Sources/Fluid/UI/FeedbackView.swift
index f4e4424f..f15f47b6 100644
--- a/Sources/Fluid/UI/FeedbackView.swift
+++ b/Sources/Fluid/UI/FeedbackView.swift
@@ -145,8 +145,8 @@ struct FeedbackView: View {
.foregroundStyle(.secondary)
}
}
- }
- .allowsHitTesting(false))
+ )
+ .allowsHitTesting(false)
// Debug logs option
Toggle("Include debug logs", isOn: self.$includeDebugLogs)