Skip to content

Commit 2a3ef50

Browse files
committed
Default to gpt-5 instead of o4-mini when openai-api-key found.
1 parent 507a1d4 commit 2a3ef50

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
## Unreleased
44

5+
- Default to gpt-5 instead of o4-mini when openai-api-key found.
6+
57
## 0.21.0
68

79
- Fix openai skip streaming response corner cases.

src/eca/llm_api.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
(when (anthropic-api-key config)
6969
[:api-key-found "claude-sonnet-4-0"])
7070
(when (openai-api-key config)
71-
[:api-key-found "o4-mini"])
71+
[:api-key-found "gpt-5"])
7272
(when-let [ollama-model (first (filter #(string/starts-with? % config/ollama-model-prefix) (keys (:models db))))]
7373
[:ollama-running ollama-model])
7474
[:default "claude-sonnet-4-0"])]

test/eca/llm_api_test.clj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,13 @@
3838
(with-redefs [config/get-env (constantly nil)]
3939
(let [db {:models {}}
4040
config {:openaiApiKey "yes!"}]
41-
(is (= "o4-mini" (llm-api/default-model db config))))))
41+
(is (= "gpt-5" (llm-api/default-model db config))))))
4242

4343
(testing "OpenAI API key present in ENV"
4444
(with-redefs [config/get-env (fn [k] (when (= k "OPENAI_API_KEY") "env-openai"))]
4545
(let [db {:models {}}
4646
config {}]
47-
(is (= "o4-mini" (llm-api/default-model db config))))))
47+
(is (= "gpt-5" (llm-api/default-model db config))))))
4848

4949
(testing "Fallback default (no keys anywhere)"
5050
(with-redefs [config/get-env (constantly nil)]

0 commit comments

Comments
 (0)