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":
|
case "elevenlabs":
|
||||||
providerName = "elevenlabs"
|
providerName = "elevenlabs"
|
||||||
envVar = "ELEVENLABS_API_KEY"
|
envVar = "ELEVENLABS_API_KEY"
|
||||||
|
case "deepgram":
|
||||||
|
providerName = "deepgram"
|
||||||
|
envVar = "DEEPGRAM_API_KEY"
|
||||||
}
|
}
|
||||||
|
|
||||||
if c.Providers != nil {
|
if c.Providers != nil {
|
||||||
|
|||||||
@@ -46,6 +46,8 @@ keywords = []
|
|||||||
# api_key = "" # Mistral API key (or set MISTRAL_API_KEY env var)
|
# api_key = "" # Mistral API key (or set MISTRAL_API_KEY env var)
|
||||||
# [providers.elevenlabs]
|
# [providers.elevenlabs]
|
||||||
# api_key = "" # ElevenLabs API key (or set ELEVENLABS_API_KEY env var)
|
# 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
|
# Audio Recording
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ type ConfigureResult struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// AllProviders is the list of all supported cloud providers (require API keys)
|
// 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)
|
// LocalProviders is the list of local providers (no API key required)
|
||||||
var LocalProviders = []string{"whisper-cpp"}
|
var LocalProviders = []string{"whisper-cpp"}
|
||||||
@@ -28,6 +28,7 @@ var providerDisplayNames = map[string]string{
|
|||||||
"groq": "Groq",
|
"groq": "Groq",
|
||||||
"mistral": "Mistral",
|
"mistral": "Mistral",
|
||||||
"elevenlabs": "ElevenLabs",
|
"elevenlabs": "ElevenLabs",
|
||||||
|
"deepgram": "Deepgram",
|
||||||
"whisper-cpp": "Whisper.cpp (local)",
|
"whisper-cpp": "Whisper.cpp (local)",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -418,3 +418,10 @@ Started: Sun Feb 1 12:22:47 AM CET 2026
|
|||||||
- Updated tests: streaming models now succeed (not error)
|
- Updated tests: streaming models now succeed (not error)
|
||||||
- Added tests for deepgram and openai-realtime streaming models
|
- 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
|
||||||
+1
-1
@@ -1007,7 +1007,7 @@
|
|||||||
"Config template includes deepgram section",
|
"Config template includes deepgram section",
|
||||||
"Typecheck passes"
|
"Typecheck passes"
|
||||||
],
|
],
|
||||||
"passes": false
|
"passes": true
|
||||||
},
|
},
|
||||||
// ============================================================================
|
// ============================================================================
|
||||||
// PHASE 9: DOCUMENTATION
|
// PHASE 9: DOCUMENTATION
|
||||||
|
|||||||
Reference in New Issue
Block a user