add deepgram api key env var and config support
This commit is contained in:
@@ -51,6 +51,9 @@ func (c *Config) resolveAPIKeyForProvider(provider string) string {
|
||||
case "elevenlabs":
|
||||
providerName = "elevenlabs"
|
||||
envVar = "ELEVENLABS_API_KEY"
|
||||
case "deepgram":
|
||||
providerName = "deepgram"
|
||||
envVar = "DEEPGRAM_API_KEY"
|
||||
}
|
||||
|
||||
if c.Providers != nil {
|
||||
|
||||
@@ -46,6 +46,8 @@ keywords = []
|
||||
# api_key = "" # Mistral API key (or set MISTRAL_API_KEY env var)
|
||||
# [providers.elevenlabs]
|
||||
# api_key = "" # ElevenLabs API key (or set ELEVENLABS_API_KEY env var)
|
||||
# [providers.deepgram]
|
||||
# api_key = "" # Deepgram API key (or set DEEPGRAM_API_KEY env var)
|
||||
|
||||
# ─────────────────────────────────────────────────────────────────────────────
|
||||
# Audio Recording
|
||||
|
||||
@@ -17,7 +17,7 @@ type ConfigureResult struct {
|
||||
}
|
||||
|
||||
// AllProviders is the list of all supported cloud providers (require API keys)
|
||||
var AllProviders = []string{"openai", "groq", "mistral", "elevenlabs"}
|
||||
var AllProviders = []string{"openai", "groq", "mistral", "elevenlabs", "deepgram"}
|
||||
|
||||
// LocalProviders is the list of local providers (no API key required)
|
||||
var LocalProviders = []string{"whisper-cpp"}
|
||||
@@ -28,6 +28,7 @@ var providerDisplayNames = map[string]string{
|
||||
"groq": "Groq",
|
||||
"mistral": "Mistral",
|
||||
"elevenlabs": "ElevenLabs",
|
||||
"deepgram": "Deepgram",
|
||||
"whisper-cpp": "Whisper.cpp (local)",
|
||||
}
|
||||
|
||||
|
||||
+8
-1
@@ -417,4 +417,11 @@ Started: Sun Feb 1 12:22:47 AM CET 2026
|
||||
- Wraps streaming adapter in `NewStreamingTranscriber(adapter, config.Language)`
|
||||
- Updated tests: streaming models now succeed (not error)
|
||||
- Added tests for deepgram and openai-realtime streaming models
|
||||
- All tests passing with -race flag, typecheck passes
|
||||
- All tests passing with -race flag, typecheck passes
|
||||
|
||||
### Task 43: Add DEEPGRAM_API_KEY env var support
|
||||
- Added `case "deepgram"` to `resolveAPIKeyForProvider()` in convert.go
|
||||
- Maps to providerName="deepgram" and envVar="DEEPGRAM_API_KEY"
|
||||
- Updated config template in save.go with commented deepgram section
|
||||
- Added "deepgram" to AllProviders and providerDisplayNames in configure.go for TUI
|
||||
- All tests passing, typecheck passes
|
||||
+7
-7
@@ -1002,13 +1002,13 @@
|
||||
"Update providers config section to include deepgram",
|
||||
"Update config template in save.go with deepgram section"
|
||||
],
|
||||
"verify": [
|
||||
"Deepgram API key resolved from config or DEEPGRAM_API_KEY env",
|
||||
"Config template includes deepgram section",
|
||||
"Typecheck passes"
|
||||
],
|
||||
"passes": false
|
||||
},
|
||||
"verify": [
|
||||
"Deepgram API key resolved from config or DEEPGRAM_API_KEY env",
|
||||
"Config template includes deepgram section",
|
||||
"Typecheck passes"
|
||||
],
|
||||
"passes": true
|
||||
},
|
||||
// ============================================================================
|
||||
// PHASE 9: DOCUMENTATION
|
||||
// Consolidated at the end - update all docs once architecture is stable
|
||||
|
||||
Reference in New Issue
Block a user