Skip to content

Commit c5acaa3

Browse files
committed
Update default models
1 parent fd3057f commit c5acaa3

File tree

7 files changed

+43
-37
lines changed

7 files changed

+43
-37
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,11 @@
22

33
## Unreleased
44

5+
- Update anthropic default models to include opus-4.5
6+
- Update anthropic default models to use alias names.
7+
58
## 0.80.1
9+
610
- Add new models to GitHub config (Gpt 5.1 and Opus 4.5).
711

812
## 0.80.0

integration-test/integration/chat/anthropic_test.clj

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@
1919
(testing "We send a simple hello message"
2020
(llm.mocks/set-case! :simple-text-0)
2121
(let [resp (eca/request! (fixture/chat-prompt-request
22-
{:model "anthropic/claude-sonnet-4-20250514"
22+
{:model "anthropic/claude-sonnet-4.5"
2323
:message "Tell me a joke!"}))
2424
chat-id (reset! chat-id* (:chatId resp))]
2525

2626
(is (match?
2727
{:chatId (m/pred string?)
28-
:model "anthropic/claude-sonnet-4-20250514"
28+
:model "anthropic/claude-sonnet-4.5"
2929
:status "prompting"}
3030
resp))
3131

@@ -49,13 +49,13 @@
4949
(llm.mocks/set-case! :simple-text-1)
5050
(let [resp (eca/request! (fixture/chat-prompt-request
5151
{:chat-id @chat-id*
52-
:model "anthropic/claude-sonnet-4-20250514"
52+
:model "anthropic/claude-sonnet-4.5"
5353
:message "Who's there?"}))
5454
chat-id @chat-id*]
5555

5656
(is (match?
5757
{:chatId (m/pred string?)
58-
:model "anthropic/claude-sonnet-4-20250514"
58+
:model "anthropic/claude-sonnet-4.5"
5959
:status "prompting"}
6060
resp))
6161

@@ -78,13 +78,13 @@
7878
(llm.mocks/set-case! :simple-text-2)
7979
(let [resp (eca/request! (fixture/chat-prompt-request
8080
{:chat-id @chat-id*
81-
:model "anthropic/claude-sonnet-4-20250514"
81+
:model "anthropic/claude-sonnet-4.5"
8282
:message "What foo?"}))
8383
chat-id @chat-id*]
8484

8585
(is (match?
8686
{:chatId (m/pred string?)
87-
:model "anthropic/claude-sonnet-4-20250514"
87+
:model "anthropic/claude-sonnet-4.5"
8888
:status "prompting"}
8989
resp))
9090

@@ -117,13 +117,13 @@
117117
(testing "We send a hello message"
118118
(llm.mocks/set-case! :reasoning-0)
119119
(let [resp (eca/request! (fixture/chat-prompt-request
120-
{:model "anthropic/claude-sonnet-4-20250514"
120+
{:model "anthropic/claude-sonnet-4.5"
121121
:message "hello!"}))
122122
chat-id (reset! chat-id* (:chatId resp))]
123123

124124
(is (match?
125125
{:chatId (m/pred string?)
126-
:model "anthropic/claude-sonnet-4-20250514"
126+
:model "anthropic/claude-sonnet-4.5"
127127
:status "prompting"}
128128
resp))
129129

@@ -151,13 +151,13 @@
151151
(llm.mocks/set-case! :reasoning-1)
152152
(let [resp (eca/request! (fixture/chat-prompt-request
153153
{:chat-id @chat-id*
154-
:model "anthropic/claude-sonnet-4-20250514"
154+
:model "anthropic/claude-sonnet-4.5"
155155
:message "how are you?"}))
156156
chat-id @chat-id*]
157157

158158
(is (match?
159159
{:chatId (m/pred string?)
160-
:model "anthropic/claude-sonnet-4-20250514"
160+
:model "anthropic/claude-sonnet-4.5"
161161
:status "prompting"}
162162
resp))
163163

@@ -195,13 +195,13 @@
195195
(testing "We ask what files LLM see"
196196
(llm.mocks/set-case! :tool-calling-0)
197197
(let [resp (eca/request! (fixture/chat-prompt-request
198-
{:model "anthropic/claude-sonnet-4-20250514"
198+
{:model "anthropic/claude-sonnet-4.5"
199199
:message "What files you see?"}))
200200
chat-id (reset! chat-id* (:chatId resp))]
201201

202202
(is (match?
203203
{:chatId (m/pred string?)
204-
:model "anthropic/claude-sonnet-4-20250514"
204+
:model "anthropic/claude-sonnet-4.5"
205205
:status "prompting"}
206206
resp))
207207

integration-test/integration/initialize_test.clj

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,10 @@
1212
(deftest default-initialize-and-shutdown
1313
(eca/start-process!)
1414

15-
(let [models ["anthropic/claude-haiku-4-5-20251001"
16-
"anthropic/claude-opus-4-1-20250805"
17-
"anthropic/claude-opus-4-20250514"
18-
"anthropic/claude-sonnet-4-20250514"
19-
"anthropic/claude-sonnet-4-5-20250929"
15+
(let [models ["anthropic/claude-haiku-4.5"
16+
"anthropic/claude-opus-4.1"
17+
"anthropic/claude-opus-4.5"
18+
"anthropic/claude-sonnet-4.5"
2019
"github-copilot/claude-haiku-4.5"
2120
"github-copilot/claude-opus-4.1"
2221
"github-copilot/claude-opus-4.5"
@@ -51,7 +50,7 @@
5150
(testing "config updated"
5251
(is (match?
5352
{:chat {:models models
54-
:selectModel "anthropic/claude-sonnet-4-5-20250929"
53+
:selectModel "anthropic/claude-sonnet-4.5"
5554
:behaviors ["agent" "plan"]
5655
:selectBehavior "plan"
5756
:welcomeMessage (m/pred #(string/includes? % "Welcome to ECA!"))}}
@@ -75,11 +74,10 @@
7574

7675
(deftest initialize-with-custom-providers
7776
(eca/start-process!)
78-
(let [models ["anthropic/claude-haiku-4-5-20251001"
79-
"anthropic/claude-opus-4-1-20250805"
80-
"anthropic/claude-opus-4-20250514"
81-
"anthropic/claude-sonnet-4-20250514"
82-
"anthropic/claude-sonnet-4-5-20250929"
77+
(let [models ["anthropic/claude-haiku-4.5"
78+
"anthropic/claude-opus-4.1"
79+
"anthropic/claude-opus-4.5"
80+
"anthropic/claude-sonnet-4.5"
8381
"github-copilot/claude-haiku-4.5"
8482
"github-copilot/claude-opus-4.1"
8583
"github-copilot/claude-opus-4.5"

src/eca/config.clj

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,10 @@
5252
:key nil
5353
:keyEnv "ANTHROPIC_API_KEY"
5454
:requiresAuth? true
55-
:models {"claude-sonnet-4-5-20250929" {}
56-
"claude-sonnet-4-20250514" {}
57-
"claude-opus-4-1-20250805" {}
58-
"claude-opus-4-20250514" {}
59-
"claude-haiku-4-5-20251001" {}}}
55+
:models {"claude-sonnet-4.5" {:modelName "claude-sonnet-4-5-20250929"}
56+
"claude-opus-4.5" {:modelName "claude-opus-4-5-20251101"}
57+
"claude-opus-4.1" {:modelName "claude-opus-4-1-20250805"}
58+
"claude-haiku-4.5" {:modelName "claude-haiku-4-5-20251001"}}}
6059
"github-copilot" {:api "openai-chat"
6160
:url "https://api.githubcopilot.com"
6261
:key nil ;; not supported, requires login auth

src/eca/llm_api.clj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,14 +51,14 @@
5151
(or (when-let [config-default-model (:defaultModel config)]
5252
[:config-default-model config-default-model])
5353
(when (llm-util/provider-api-key "anthropic" (get-in db [:auth "anthropic"]) config)
54-
[:api-key-found "anthropic/claude-sonnet-4-5-20250929"])
54+
[:api-key-found "anthropic/claude-sonnet-4.5"])
5555
(when (llm-util/provider-api-key "openai" (get-in db [:auth "openai"]) config)
56-
[:api-key-found "openai/gpt-5"])
56+
[:api-key-found "openai/gpt-5.1"])
5757
(when (get-in db [:auth "github-copilot" :api-key])
58-
[:api-key-found "github-copilot/gpt-4.1"])
58+
[:api-key-found "github-copilot/gpt-5.1"])
5959
(when-let [ollama-model (first (filter #(string/starts-with? % config/ollama-model-prefix) (keys (:models db))))]
6060
[:ollama-running ollama-model])
61-
[:default "anthropic/claude-sonnet-4-5-20250929"])]
61+
[:default "anthropic/claude-sonnet-4.5"])]
6262
(logger/info logger-tag (format "Default LLM model '%s' decision '%s'" model decision))
6363
model))
6464

src/eca/models.clj

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,15 @@
3030
"openai/gpt-5"
3131
"openai/gpt-5-mini"
3232
"openai/gpt-5-nano"
33+
"anthropic/claude-sonnet-4.5"
34+
"anthropic/claude-opus-4-1"
35+
"anthropic/claude-opus-4-5"
36+
"anthropic/claude-haiku-4.5"
3337
"anthropic/claude-sonnet-4-5-20250929"
3438
"anthropic/claude-sonnet-4-20250514"
3539
"anthropic/claude-opus-4-20250514"
3640
"anthropic/claude-opus-4-1-20250805"
41+
"anthropic/claude-opus-4-5-20251101"
3742
"anthropic/claude-haiku-4-5-20251001"})
3843

3944
(defn ^:private all

test/eca/llm_api_test.clj

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,33 +30,33 @@
3030
secrets/credential-file-paths (constantly [])]
3131
(let [db {:models {}}
3232
config {:providers {"anthropic" {:key "something"}}}]
33-
(is (= "anthropic/claude-sonnet-4-5-20250929" (llm-api/default-model db config))))))
33+
(is (= "anthropic/claude-sonnet-4.5" (llm-api/default-model db config))))))
3434

3535
(testing "Anthropic API key present in ENV"
3636
(with-redefs [config/get-env (fn [k] (when (= k "ANTHROPIC_API_KEY") "env-anthropic"))
3737
secrets/credential-file-paths (constantly [])]
3838
(let [db {:models {}}
3939
config {:providers {"anthropic" {:keyEnv "ANTHROPIC_API_KEY"}}}]
40-
(is (= "anthropic/claude-sonnet-4-5-20250929" (llm-api/default-model db config))))))
40+
(is (= "anthropic/claude-sonnet-4.5" (llm-api/default-model db config))))))
4141

4242
(testing "OpenAI API key present in config"
4343
(with-redefs [config/get-env (constantly nil)
4444
secrets/credential-file-paths (constantly [])]
4545
(let [db {:models {}}
4646
config {:providers {"openai" {:key "yes!"}}}]
47-
(is (= "openai/gpt-5" (llm-api/default-model db config))))))
47+
(is (= "openai/gpt-5.1" (llm-api/default-model db config))))))
4848

4949
(testing "OpenAI API key present in ENV"
5050
(with-redefs [config/get-env (fn [k] (when (= k "OPENAI_API_KEY") "env-openai"))
5151
secrets/credential-file-paths (constantly [])]
5252
(let [db {:models {}}
5353
config {:providers {"anthropic" {:key nil :keyEnv nil :keyRc nil}
5454
"openai" {:keyEnv "OPENAI_API_KEY"}}}]
55-
(is (= "openai/gpt-5" (llm-api/default-model db config))))))
55+
(is (= "openai/gpt-5.1" (llm-api/default-model db config))))))
5656

5757
(testing "Fallback default (no keys anywhere)"
5858
(with-redefs [config/get-env (constantly nil)
5959
secrets/credential-file-paths (constantly [])]
6060
(let [db {:models {}}
6161
config {}]
62-
(is (= "anthropic/claude-sonnet-4-5-20250929" (llm-api/default-model db config)))))))
62+
(is (= "anthropic/claude-sonnet-4.5" (llm-api/default-model db config)))))))

0 commit comments

Comments
 (0)