fix:feature-parity

This commit is contained in:
intelligence committed 2026-08-29 20:25:14 +02:00
1 parent 6c0a6eb498
commit c33d87b06e
8 files changed
+196 -33

No files matched your search

+20 -4
View File
@@ -100,7 +100,7 @@ final class AppModel: ObservableObject {
}
private func startRecording() async {
guard !settings.endpoint.trimmingCharacters(in: .whitespacesAndNewlines).isEmpty else {
guard !transcriptionPlan.endpoints.isEmpty else {
showFailure("Set a transcription endpoint in Settings.")
return
}
@@ -147,9 +147,7 @@ final class AppModel: ObservableObject {
do {
let text = try await transcriptionClient.transcribe(
recording: recording,
endpoint: settings.endpoint,
model: settings.model,
key: settings.apiKey,
plan: transcriptionPlan,
prompt: settings.prompt
)
let result = TranscriptOutput.deliver(text, to: settings.destination)
@@ -182,6 +180,24 @@ final class AppModel: ObservableObject {
}
}
private var transcriptionPlan: TranscriptionPlan {
TranscriptionPlan(
hosted: TranscriptionEndpoint(
label: "Hosted",
endpoint: settings.hostedEndpoint,
model: settings.hostedModel,
key: settings.hostedKey
),
local: TranscriptionEndpoint(
label: "Local",
endpoint: settings.localEndpoint,
model: settings.localModel,
key: settings.localKey
),
hostedFirst: settings.hostedFirst
)
}
private func showSuccess(_ message: String) {
state = .success(message)
overlay.show()