Skip to content

Commit 58b5952

Browse files
committed
Fix tests
1 parent 3a13f43 commit 58b5952

File tree

3 files changed

+52
-50
lines changed

3 files changed

+52
-50
lines changed

integration-test/integration/chat/anthropic_test.clj

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@
2121
(let [req-id 0
2222
resp (eca/request! (fixture/chat-prompt-request
2323
{:request-id req-id
24-
:model "claude-sonnet-4-20250514"
24+
:model "anthropic/claude-sonnet-4-20250514"
2525
:message "Tell me a joke!"}))
2626
chat-id (reset! chat-id* (:chatId resp))]
2727

2828
(is (match?
2929
{:chatId (m/pred string?)
30-
:model "claude-sonnet-4-20250514"
30+
:model "anthropic/claude-sonnet-4-20250514"
3131
:status "success"}
3232
resp))
3333

@@ -54,13 +54,13 @@
5454
resp (eca/request! (fixture/chat-prompt-request
5555
{:chat-id @chat-id*
5656
:request-id req-id
57-
:model "claude-sonnet-4-20250514"
57+
:model "anthropic/claude-sonnet-4-20250514"
5858
:message "Who's there?"}))
5959
chat-id @chat-id*]
6060

6161
(is (match?
6262
{:chatId (m/pred string?)
63-
:model "claude-sonnet-4-20250514"
63+
:model "anthropic/claude-sonnet-4-20250514"
6464
:status "success"}
6565
resp))
6666

@@ -87,13 +87,13 @@
8787
resp (eca/request! (fixture/chat-prompt-request
8888
{:chat-id @chat-id*
8989
:request-id req-id
90-
:model "claude-sonnet-4-20250514"
90+
:model "anthropic/claude-sonnet-4-20250514"
9191
:message "What foo?"}))
9292
chat-id @chat-id*]
9393

9494
(is (match?
9595
{:chatId (m/pred string?)
96-
:model "claude-sonnet-4-20250514"
96+
:model "anthropic/claude-sonnet-4-20250514"
9797
:status "success"}
9898
resp))
9999

@@ -130,13 +130,13 @@
130130
(let [req-id 0
131131
resp (eca/request! (fixture/chat-prompt-request
132132
{:request-id req-id
133-
:model "claude-sonnet-4-20250514"
133+
:model "anthropic/claude-sonnet-4-20250514"
134134
:message "hello!"}))
135135
chat-id (reset! chat-id* (:chatId resp))]
136136

137137
(is (match?
138138
{:chatId (m/pred string?)
139-
:model "claude-sonnet-4-20250514"
139+
:model "anthropic/claude-sonnet-4-20250514"
140140
:status "success"}
141141
resp))
142142

@@ -167,13 +167,13 @@
167167
resp (eca/request! (fixture/chat-prompt-request
168168
{:request-id req-id
169169
:chat-id @chat-id*
170-
:model "claude-sonnet-4-20250514"
170+
:model "anthropic/claude-sonnet-4-20250514"
171171
:message "how are you?"}))
172172
chat-id @chat-id*]
173173

174174
(is (match?
175175
{:chatId (m/pred string?)
176-
:model "claude-sonnet-4-20250514"
176+
:model "anthropic/claude-sonnet-4-20250514"
177177
:status "success"}
178178
resp))
179179

@@ -215,13 +215,13 @@
215215
(let [req-id 0
216216
resp (eca/request! (fixture/chat-prompt-request
217217
{:request-id req-id
218-
:model "claude-sonnet-4-20250514"
218+
:model "anthropic/claude-sonnet-4-20250514"
219219
:message "What files you see?"}))
220220
chat-id (reset! chat-id* (:chatId resp))]
221221

222222
(is (match?
223223
{:chatId (m/pred string?)
224-
:model "claude-sonnet-4-20250514"
224+
:model "anthropic/claude-sonnet-4-20250514"
225225
:status "success"}
226226
resp))
227227

integration-test/integration/chat/openai_test.clj

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@
2121
(let [req-id 0
2222
resp (eca/request! (fixture/chat-prompt-request
2323
{:request-id req-id
24-
:model "gpt-4.1"
24+
:model "openai/gpt-4.1"
2525
:message "Tell me a joke!"}))
2626
chat-id (reset! chat-id* (:chatId resp))]
2727

2828
(is (match?
2929
{:chatId (m/pred string?)
30-
:model "gpt-4.1"
30+
:model "openai/gpt-4.1"
3131
:status "success"}
3232
resp))
3333

@@ -54,13 +54,13 @@
5454
resp (eca/request! (fixture/chat-prompt-request
5555
{:chat-id @chat-id*
5656
:request-id req-id
57-
:model "gpt-4.1"
57+
:model "openai/gpt-4.1"
5858
:message "Who's there?"}))
5959
chat-id @chat-id*]
6060

6161
(is (match?
6262
{:chatId (m/pred string?)
63-
:model "gpt-4.1"
63+
:model "openai/gpt-4.1"
6464
:status "success"}
6565
resp))
6666

@@ -87,13 +87,13 @@
8787
resp (eca/request! (fixture/chat-prompt-request
8888
{:chat-id @chat-id*
8989
:request-id req-id
90-
:model "gpt-4.1"
90+
:model "openai/gpt-4.1"
9191
:message "What foo?"}))
9292
chat-id @chat-id*]
9393

9494
(is (match?
9595
{:chatId (m/pred string?)
96-
:model "gpt-4.1"
96+
:model "openai/gpt-4.1"
9797
:status "success"}
9898
resp))
9999

integration-test/integration/initialize_test.clj

Lines changed: 34 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -13,21 +13,22 @@
1313

1414
(testing "initialize request with default config"
1515
(is (match?
16-
{:models ["anthropic/claude-3-5-haiku-20241022"
17-
"anthropic/claude-opus-4-1-20250805"
18-
"anthropic/claude-opus-4-20250514"
19-
"anthropic/claude-sonnet-4-20250514"
20-
"github-copilot/gpt-5-mini"
21-
"github-copilot/gpt-4.1"
22-
"github-copilot/gpt-4o"
23-
"github-copilot/claude-3.5-sonnet"
24-
"github-copilot/gemini-2.0-flash-001"
25-
"openai/gpt-4.1"
26-
"openai/gpt-5"
27-
"openai/gpt-5-mini"
28-
"openai/gpt-5-nano"
29-
"openai/o3"
30-
"openai/o4-mini"]
16+
{:models (m/in-any-order
17+
["anthropic/claude-3-5-haiku-20241022"
18+
"anthropic/claude-opus-4-1-20250805"
19+
"anthropic/claude-opus-4-20250514"
20+
"anthropic/claude-sonnet-4-20250514"
21+
"github-copilot/gpt-5-mini"
22+
"github-copilot/gpt-4.1"
23+
"github-copilot/gpt-4o"
24+
"github-copilot/claude-3.5-sonnet"
25+
"github-copilot/gemini-2.0-flash-001"
26+
"openai/gpt-4.1"
27+
"openai/gpt-5"
28+
"openai/gpt-5-mini"
29+
"openai/gpt-5-nano"
30+
"openai/o3"
31+
"openai/o4-mini"])
3132
:chatDefaultModel "anthropic/claude-sonnet-4-20250514"
3233
:chatBehaviors ["agent" "plan"]
3334
:chatDefaultBehavior "plan"
@@ -59,23 +60,24 @@
5960
(eca/start-process!)
6061
(testing "initialize request with custom providers"
6162
(is (match?
62-
{:models ["anthropic/claude-3-5-haiku-20241022"
63-
"anthropic/claude-opus-4-1-20250805"
64-
"anthropic/claude-opus-4-20250514"
65-
"anthropic/claude-sonnet-4-20250514"
66-
"github-copilot/gpt-5-mini"
67-
"github-copilot/gpt-4.1"
68-
"github-copilot/gpt-4o"
69-
"github-copilot/claude-3.5-sonnet"
70-
"github-copilot/gemini-2.0-flash-001"
71-
"myCustom/bar-2"
72-
"myCustom/foo-1"
73-
"openai/gpt-4.1"
74-
"openai/gpt-5"
75-
"openai/gpt-5-mini"
76-
"openai/gpt-5-nano"
77-
"openai/o3"
78-
"openai/o4-mini"]
63+
{:models (m/in-any-order
64+
["anthropic/claude-3-5-haiku-20241022"
65+
"anthropic/claude-opus-4-1-20250805"
66+
"anthropic/claude-opus-4-20250514"
67+
"anthropic/claude-sonnet-4-20250514"
68+
"github-copilot/gpt-5-mini"
69+
"github-copilot/gpt-4.1"
70+
"github-copilot/gpt-4o"
71+
"github-copilot/claude-3.5-sonnet"
72+
"github-copilot/gemini-2.0-flash-001"
73+
"myCustom/bar-2"
74+
"myCustom/foo-1"
75+
"openai/gpt-4.1"
76+
"openai/gpt-5"
77+
"openai/gpt-5-mini"
78+
"openai/gpt-5-nano"
79+
"openai/o3"
80+
"openai/o4-mini"])
7981
:chatDefaultModel "myCustom/bar-2"
8082
:chatBehaviors ["agent" "plan"]
8183
:chatDefaultBehavior "agent"

0 commit comments

Comments
 (0)