summaryrefslogtreecommitdiffhomepage
path: root/internal/llm/models/models.go
diff options
context:
space:
mode:
authorAiden Cline <[email protected]>2025-04-28 12:25:06 -0500
committerGitHub <[email protected]>2025-04-28 19:25:06 +0200
commitb3c0285db3dd5d5140481bf5118812e8dbc89795 (patch)
tree3ead4b4447743c57cec2eef672d18615b7bdb2cb /internal/llm/models/models.go
parent805aeff83cad4c17e25acdd671d2731be104b3e0 (diff)
downloadopencode-b3c0285db3dd5d5140481bf5118812e8dbc89795.tar.gz
opencode-b3c0285db3dd5d5140481bf5118812e8dbc89795.zip
feat: model selection for given provider (#57)
* feat: model selection for given provider * tweak: adjust cfg validation func, remove duplicated logic, consolidate agent updating into agent.go * tweak: make the model dialog scrollable, adjust padding slightly for modal" * feat: add provider selection, add hints, simplify some logic, add horizontal scrolling support, additional scroll indicators" * remove nav help * update docs * increase number of visible models, make horizontal scroll "wrap" * add provider popularity rankings
Diffstat (limited to 'internal/llm/models/models.go')
-rw-r--r--internal/llm/models/models.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/internal/llm/models/models.go b/internal/llm/models/models.go
index bad0ebdaa..5dd28359f 100644
--- a/internal/llm/models/models.go
+++ b/internal/llm/models/models.go
@@ -33,6 +33,15 @@ const (
ProviderMock ModelProvider = "__mock"
)
+// Providers in order of popularity
+var ProviderPopularity = map[ModelProvider]int{
+ ProviderAnthropic: 1,
+ ProviderOpenAI: 2,
+ ProviderGemini: 3,
+ ProviderGROQ: 4,
+ ProviderBedrock: 5,
+}
+
var SupportedModels = map[ModelID]Model{
//
// // GEMINI