summaryrefslogtreecommitdiffhomepage
path: root/internal/llm/models/models.go
diff options
context:
space:
mode:
authorHunter Casten <[email protected]>2025-04-24 22:48:48 -0700
committerKujtim Hoxha <[email protected]>2025-04-25 11:11:52 +0200
commit7a62ab7675dd042266611205c43e9869a2da1664 (patch)
tree80788c9016d3866ac5de3c5a3d3c7c7c2b474bd6 /internal/llm/models/models.go
parent1586d757dc64e1e8f65625c289a707a5e34a16b0 (diff)
downloadopencode-7a62ab7675dd042266611205c43e9869a2da1664.tar.gz
opencode-7a62ab7675dd042266611205c43e9869a2da1664.zip
feat(groq): add support for Groq using the OpenAI provider
Diffstat (limited to 'internal/llm/models/models.go')
-rw-r--r--internal/llm/models/models.go18
1 files changed, 1 insertions, 17 deletions
diff --git a/internal/llm/models/models.go b/internal/llm/models/models.go
index cccbd2765..1bc02c49d 100644
--- a/internal/llm/models/models.go
+++ b/internal/llm/models/models.go
@@ -23,17 +23,12 @@ type Model struct {
// Model IDs
const ( // GEMINI
- // GROQ
- QWENQwq ModelID = "qwen-qwq"
-
// Bedrock
BedrockClaude37Sonnet ModelID = "bedrock.claude-3.7-sonnet"
)
const (
ProviderBedrock ModelProvider = "bedrock"
- ProviderGROQ ModelProvider = "groq"
-
// ForTests
ProviderMock ModelProvider = "__mock"
)
@@ -63,18 +58,6 @@ var SupportedModels = map[ModelID]Model{
// CostPer1MOut: 0.4,
// },
//
- // // GROQ
- // QWENQwq: {
- // ID: QWENQwq,
- // Name: "Qwen Qwq",
- // Provider: ProviderGROQ,
- // APIModel: "qwen-qwq-32b",
- // CostPer1MIn: 0,
- // CostPer1MInCached: 0,
- // CostPer1MOutCached: 0,
- // CostPer1MOut: 0,
- // },
- //
// // Bedrock
BedrockClaude37Sonnet: {
ID: BedrockClaude37Sonnet,
@@ -92,4 +75,5 @@ func init() {
maps.Copy(SupportedModels, AnthropicModels)
maps.Copy(SupportedModels, OpenAIModels)
maps.Copy(SupportedModels, GeminiModels)
+ maps.Copy(SupportedModels, GroqModels)
}