OpenAI model config changed to GPT-4.1
This commit is contained in:
@@ -116,8 +116,8 @@ func Load(debug bool) error {
|
||||
viper.SetDefault("providers.openai.apiKey", os.Getenv("OPENAI_API_KEY"))
|
||||
viper.SetDefault("providers.openai.enabled", true)
|
||||
if !defaultModelSet {
|
||||
viper.SetDefault("model.coder", models.GPT4o)
|
||||
viper.SetDefault("model.task", models.GPT4o)
|
||||
viper.SetDefault("model.coder", models.GPT41)
|
||||
viper.SetDefault("model.task", models.GPT41)
|
||||
defaultModelSet = true
|
||||
}
|
||||
}
|
||||
|
||||
@@ -223,7 +223,7 @@ func TestLoad(t *testing.T) {
|
||||
anthropicKey: "",
|
||||
openaiKey: "test-key",
|
||||
geminiKey: "test-key",
|
||||
expectedModel: models.GPT4o,
|
||||
expectedModel: models.GPT41,
|
||||
},
|
||||
{
|
||||
name: "fallback to gemini when no others",
|
||||
@@ -237,9 +237,9 @@ func TestLoad(t *testing.T) {
|
||||
anthropicKey: "test-key",
|
||||
openaiKey: "test-key",
|
||||
geminiKey: "test-key",
|
||||
explicitModel: models.GPT4o,
|
||||
explicitModel: models.GPT41,
|
||||
useExplicitModel: true,
|
||||
expectedModel: models.GPT4o,
|
||||
expectedModel: models.GPT41,
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user