feat: remove legacy configuration
This commit is contained in:
@@ -41,7 +41,7 @@ func (c *Config) resolveEffectiveLanguage() string {
|
||||
return c.Transcription.Language
|
||||
}
|
||||
|
||||
// resolveAPIKeyForProvider returns the API key for a provider from multiple sources
|
||||
// resolveAPIKeyForProvider returns the API key for a provider from config or env
|
||||
func (c *Config) resolveAPIKeyForProvider(providerName string) string {
|
||||
baseName := provider.BaseProviderName(providerName)
|
||||
envVar := provider.EnvVarForProvider(providerName)
|
||||
@@ -52,10 +52,6 @@ func (c *Config) resolveAPIKeyForProvider(providerName string) string {
|
||||
}
|
||||
}
|
||||
|
||||
if c.Transcription.APIKey != "" {
|
||||
return c.Transcription.APIKey
|
||||
}
|
||||
|
||||
if envVar != "" {
|
||||
return os.Getenv(envVar)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user