From 96c500e0c3d56ff7c1a464e83e738792a2aedf4b Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Wed, 17 Sep 2025 23:03:11 +0300 Subject: chore(openai): revert default model to gpt-4.1 --- config.toml.example | 2 +- internal/llm/openai.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config.toml.example b/config.toml.example index b8198a6..9ac6f51 100644 --- a/config.toml.example +++ b/config.toml.example @@ -31,7 +31,7 @@ chat_prefixes = ["?", "!", ":", ";"] # single-character items name = "openai" # openai | copilot | ollama [openai] -model = "gpt-4o" +model = "gpt-4.1" base_url = "https://api.openai.com/v1" temperature = 0.2 diff --git a/internal/llm/openai.go b/internal/llm/openai.go index 42a9152..8a0d6d7 100644 --- a/internal/llm/openai.go +++ b/internal/llm/openai.go @@ -81,7 +81,7 @@ func newOpenAI(baseURL, model, apiKey string, defaultTemp *float64) Client { baseURL = "https://api.openai.com/v1" } if strings.TrimSpace(model) == "" { - model = "gpt-4o" + model = "gpt-4.1" } return openAIClient{ httpClient: &http.Client{Timeout: 30 * time.Second}, -- cgit v1.2.3