mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-01 14:00:30 +00:00
OpenAI model config changed to GPT-4.1
This commit is contained in:
parent
9004b91bf9
commit
633d1d286a
3 changed files with 13 additions and 13 deletions
|
|
@ -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,
|
||||
},
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue