Skip to content

Commit 8c09d19

Browse files
committed
Fix mistralai test cases
1 parent 9f747a4 commit 8c09d19

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

aikido_zen/sinks/tests/mistralai_test.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,16 +61,16 @@ def test_mistralai_agents_complete(mistral):
6161
"role": "user",
6262
},
6363
],
64-
agent_id="ag:e1521cc4:20250618:untitled-agent:cb1e1742",
64+
agent_id="ag:e1521cc4:20250805:untitled-agent:498e0dd8",
6565
)
6666
print(res)
6767

68-
assert get_ai_stats()[0]["model"] == "mistral-large-2411"
68+
assert get_ai_stats()[0]["model"] == "mistral-medium-latest"
6969
assert get_ai_stats()[0]["calls"] == 1
7070
assert get_ai_stats()[0]["provider"] == "mistralai"
71-
assert get_ai_stats()[0]["tokens"]["input"] == 20
71+
assert get_ai_stats()[0]["tokens"]["input"] == 16
7272
assert get_ai_stats()[0]["tokens"]["output"] == 11
73-
assert get_ai_stats()[0]["tokens"]["total"] == 31
73+
assert get_ai_stats()[0]["tokens"]["total"] == 27
7474

7575

7676
@skip_no_api_key
@@ -95,7 +95,7 @@ def test_mistralai_embeddings_create(mistral):
9595
@skip_no_api_key
9696
def test_mistralai_fim_complete(mistral):
9797
res = mistral.fim.complete(
98-
model="codestral-2405", prompt="def", suffix="return a+b"
98+
model="codestral-2405", prompt="def", suffix="return a+b", max_tokens=6
9999
)
100100
print(res)
101101

0 commit comments

Comments
 (0)