From 633d1d286a17d4b8605b96b400f696819b3e9c17 Mon Sep 17 00:00:00 2001 From: jdlms Date: Tue, 15 Apr 2025 09:36:47 +0200 Subject: OpenAI model config changed to GPT-4.1 --- internal/config/config.go | 4 ++-- internal/config/config_test.go | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'internal/config') diff --git a/internal/config/config.go b/internal/config/config.go index 661dfc4bb..fdfacd11a 100644 --- a/internal/config/config.go +++ b/internal/config/config.go @@ -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 } } diff --git a/internal/config/config_test.go b/internal/config/config_test.go index 9af6b479f..9111aa0fa 100644 --- a/internal/config/config_test.go +++ b/internal/config/config_test.go @@ -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, }, } -- cgit v1.2.3