diff --git a/Whishpermate/WhisperMateShared/Services/SecretsLoader.swift b/Whishpermate/WhisperMateShared/Services/SecretsLoader.swift index 82da601..fe136c9 100644 --- a/Whishpermate/WhisperMateShared/Services/SecretsLoader.swift +++ b/Whishpermate/WhisperMateShared/Services/SecretsLoader.swift @@ -12,11 +12,9 @@ public enum SecretsLoader { public static func transcriptionKey(for provider: TranscriptionProvider) -> String? { switch provider { - case .groq: - return secretsDictionary?["GroqTranscriptionKey"] as? String case .custom: return secretsDictionary?["CustomTranscriptionKey"] as? String - case .openai: + case .groq, .openai: return nil } } @@ -31,9 +29,7 @@ public enum SecretsLoader { public static func llmKey(for provider: LLMProvider) -> String? { switch provider { - case .groq: - return secretsDictionary?["GroqLLMKey"] as? String - case .openai, .anthropic, .custom: + case .groq, .openai, .anthropic, .custom: return nil } } diff --git a/Whishpermate/Whispermate/Secrets.template.plist b/Whishpermate/Whispermate/Secrets.template.plist index 97eb763..71c31e9 100644 --- a/Whishpermate/Whispermate/Secrets.template.plist +++ b/Whishpermate/Whispermate/Secrets.template.plist @@ -2,9 +2,19 @@ - GroqTranscriptionKey - YOUR_GROQ_TRANSCRIPTION_KEY_HERE - GroqLLMKey + CustomTranscriptionKey + CustomTranscriptionEndpoint + https://writingmate.ai/api/openai/v1/audio/transcriptions + CustomTranscriptionModel + gpt-4o-transcribe + SUPABASE_URL + + SUPABASE_ANON_KEY + + STRIPE_PAYMENT_LINK_MONTHLY + + AUTH_WEB_URL + https://voicesinmyhead.co/auth diff --git a/Whishpermate/Whispermate/Services/SecretsLoader.swift b/Whishpermate/Whispermate/Services/SecretsLoader.swift index 2043ffa..048ccea 100644 --- a/Whishpermate/Whispermate/Services/SecretsLoader.swift +++ b/Whishpermate/Whispermate/Services/SecretsLoader.swift @@ -14,11 +14,9 @@ enum SecretsLoader { switch provider { case .parakeet: return nil // On-device, no API key needed - case .groq: - return secretsDictionary?["GroqTranscriptionKey"] as? String case .custom: return secretsDictionary?["CustomTranscriptionKey"] as? String - case .openai: + case .groq, .openai: return nil } } @@ -41,9 +39,7 @@ enum SecretsLoader { static func llmKey(for provider: LLMProvider) -> String? { switch provider { - case .groq: - return secretsDictionary?["GroqLLMKey"] as? String - case .lfm25, .openai, .anthropic, .custom: + case .groq, .lfm25, .openai, .anthropic, .custom: return nil } }