summaryrefslogtreecommitdiffhomepage
path: root/internal
diff options
context:
space:
mode:
Diffstat (limited to 'internal')
-rw-r--r--internal/config/config.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/internal/config/config.go b/internal/config/config.go
index 22781e189..482e71c8d 100644
--- a/internal/config/config.go
+++ b/internal/config/config.go
@@ -228,6 +228,9 @@ func setProviderDefaults() {
if apiKey := os.Getenv("GROQ_API_KEY"); apiKey != "" {
viper.SetDefault("providers.groq.apiKey", apiKey)
}
+ if apiKey := os.Getenv("OPENROUTER_API_KEY"); apiKey != "" {
+ viper.SetDefault("providers.openrouter.apiKey", apiKey)
+ }
// Use this order to set the default models
// 1. Anthropic