diff options
| author | Paul Buetow <paul@buetow.org> | 2025-09-17 23:03:11 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2025-09-17 23:03:11 +0300 |
| commit | 96c500e0c3d56ff7c1a464e83e738792a2aedf4b (patch) | |
| tree | fa06584e38b9614bc0314e071e9c31ffc858d341 | |
| parent | c5cd5e47a5d534608d5beabce21aa386b346b210 (diff) | |
chore(openai): revert default model to gpt-4.1
| -rw-r--r-- | config.toml.example | 2 | ||||
| -rw-r--r-- | 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}, |
