Skip to content
This repository was archived by the owner on Sep 18, 2025. It is now read-only.

Commit 6b1c64b

Browse files
Merge pull request #30 from jdlms/update/config-GPT4.1
OpenAI model config changed to GPT-4.1
2 parents 9004b91 + 633d1d2 commit 6b1c64b

File tree

3 files changed

+13
-13
lines changed

3 files changed

+13
-13
lines changed

internal/config/config.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,8 @@ func Load(debug bool) error {
116116
viper.SetDefault("providers.openai.apiKey", os.Getenv("OPENAI_API_KEY"))
117117
viper.SetDefault("providers.openai.enabled", true)
118118
if !defaultModelSet {
119-
viper.SetDefault("model.coder", models.GPT4o)
120-
viper.SetDefault("model.task", models.GPT4o)
119+
viper.SetDefault("model.coder", models.GPT41)
120+
viper.SetDefault("model.task", models.GPT41)
121121
defaultModelSet = true
122122
}
123123
}

internal/config/config_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ func TestLoad(t *testing.T) {
223223
anthropicKey: "",
224224
openaiKey: "test-key",
225225
geminiKey: "test-key",
226-
expectedModel: models.GPT4o,
226+
expectedModel: models.GPT41,
227227
},
228228
{
229229
name: "fallback to gemini when no others",
@@ -237,9 +237,9 @@ func TestLoad(t *testing.T) {
237237
anthropicKey: "test-key",
238238
openaiKey: "test-key",
239239
geminiKey: "test-key",
240-
explicitModel: models.GPT4o,
240+
explicitModel: models.GPT41,
241241
useExplicitModel: true,
242-
expectedModel: models.GPT4o,
242+
expectedModel: models.GPT41,
243243
},
244244
}
245245

internal/llm/models/models.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const (
2323
Claude3Haiku ModelID = "claude-3-haiku"
2424
Claude37Sonnet ModelID = "claude-3.7-sonnet"
2525
// OpenAI
26-
GPT4o ModelID = "gpt-4o"
26+
GPT41 ModelID = "gpt-4.1"
2727

2828
// GEMINI
2929
GEMINI25 ModelID = "gemini-2.5"
@@ -78,15 +78,15 @@ var SupportedModels = map[ModelID]Model{
7878
},
7979

8080
// OpenAI
81-
GPT4o: {
82-
ID: GPT4o,
83-
Name: "GPT-4o",
81+
GPT41: {
82+
ID: GPT41,
83+
Name: "GPT-4.1",
8484
Provider: ProviderOpenAI,
85-
APIModel: "gpt-4o",
86-
CostPer1MIn: 2.50,
87-
CostPer1MInCached: 1.25,
85+
APIModel: "gpt-4.1",
86+
CostPer1MIn: 2.00,
87+
CostPer1MInCached: 0.50,
8888
CostPer1MOutCached: 0,
89-
CostPer1MOut: 10.00,
89+
CostPer1MOut: 8.00,
9090
},
9191

9292
// GEMINI

0 commit comments

Comments
 (0)