summaryrefslogtreecommitdiffhomepage
path: root/internal/llm
diff options
context:
space:
mode:
authorAiden Cline <[email protected]>2025-05-01 06:22:48 -0500
committeradamdottv <[email protected]>2025-05-01 11:08:17 -0500
commit69ade34c2ccdadb44fdaac4434f2ec8a36e430a5 (patch)
tree72d7fdc33cdbaeaf59a2dbe8afe1cb7d81808d9f /internal/llm
parentfbca5441f659920730196245c4660a38839a2c0e (diff)
downloadopencode-69ade34c2ccdadb44fdaac4434f2ec8a36e430a5.tar.gz
opencode-69ade34c2ccdadb44fdaac4434f2ec8a36e430a5.zip
fix: tweak the logic in config to ensure that env vs file configurations merge properly (#115)
Diffstat (limited to 'internal/llm')
-rw-r--r--internal/llm/models/models.go12
1 files changed, 7 insertions, 5 deletions
diff --git a/internal/llm/models/models.go b/internal/llm/models/models.go
index 2c5e61d7e..fd0a2b41b 100644
--- a/internal/llm/models/models.go
+++ b/internal/llm/models/models.go
@@ -35,11 +35,13 @@ const (
// Providers in order of popularity
var ProviderPopularity = map[ModelProvider]int{
- ProviderAnthropic: 1,
- ProviderOpenAI: 2,
- ProviderGemini: 3,
- ProviderGROQ: 4,
- ProviderBedrock: 5,
+ ProviderAnthropic: 1,
+ ProviderOpenAI: 2,
+ ProviderGemini: 3,
+ ProviderGROQ: 4,
+ ProviderOpenRouter: 5,
+ ProviderBedrock: 6,
+ ProviderAzure: 7,
}
var SupportedModels = map[ModelID]Model{