From c5cd5e47a5d534608d5beabce21aa386b346b210 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Wed, 17 Sep 2025 23:01:16 +0300 Subject: feat(openai): set default model to gpt-4o --- 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 9ac6f51..b8198a6 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-4.1" +model = "gpt-4o" base_url = "https://api.openai.com/v1" temperature = 0.2 diff --git a/internal/llm/openai.go b/internal/llm/openai.go index 8a0d6d7..42a9152 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-4.1" + model = "gpt-4o" } return openAIClient{ httpClient: &http.Client{Timeout: 30 * time.Second}, -- cgit v1.2.3