summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2025-09-17 23:03:11 +0300
committerPaul Buetow <paul@buetow.org>2025-09-17 23:03:11 +0300
commit96c500e0c3d56ff7c1a464e83e738792a2aedf4b (patch)
treefa06584e38b9614bc0314e071e9c31ffc858d341
parentc5cd5e47a5d534608d5beabce21aa386b346b210 (diff)
chore(openai): revert default model to gpt-4.1
-rw-r--r--config.toml.example2
-rw-r--r--internal/llm/openai.go2
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},