@@ -136,7 +136,7 @@ def expected_streaming_chunks():
136136 finish_reason = None ,
137137 tool_calls = None ,
138138 meta = {
139- "model" : "command-r-08-2024 " ,
139+ "model" : "command-a-03-2025 " ,
140140 },
141141 ),
142142 # Chunk 2: Tool plan delta
@@ -147,7 +147,7 @@ def expected_streaming_chunks():
147147 finish_reason = None ,
148148 tool_calls = None ,
149149 meta = {
150- "model" : "command-r-08-2024 " ,
150+ "model" : "command-a-03-2025 " ,
151151 },
152152 ),
153153 # Chunk 3: Tool call start
@@ -165,7 +165,7 @@ def expected_streaming_chunks():
165165 )
166166 ],
167167 meta = {
168- "model" : "command-r-08-2024 " ,
168+ "model" : "command-a-03-2025 " ,
169169 "tool_call_id" : "call_weather_paris_123" ,
170170 },
171171 ),
@@ -183,7 +183,7 @@ def expected_streaming_chunks():
183183 )
184184 ],
185185 meta = {
186- "model" : "command-r-08-2024 " ,
186+ "model" : "command-a-03-2025 " ,
187187 },
188188 ),
189189 # Chunk 5: Tool call delta - more arguments
@@ -200,7 +200,7 @@ def expected_streaming_chunks():
200200 )
201201 ],
202202 meta = {
203- "model" : "command-r-08-2024 " ,
203+ "model" : "command-a-03-2025 " ,
204204 },
205205 ),
206206 # Chunk 6: Tool call delta - city name
@@ -217,7 +217,7 @@ def expected_streaming_chunks():
217217 )
218218 ],
219219 meta = {
220- "model" : "command-r-08-2024 " ,
220+ "model" : "command-a-03-2025 " ,
221221 },
222222 ),
223223 # Chunk 7: Tool call delta - closing brace
@@ -234,7 +234,7 @@ def expected_streaming_chunks():
234234 )
235235 ],
236236 meta = {
237- "model" : "command-r-08-2024 " ,
237+ "model" : "command-a-03-2025 " ,
238238 },
239239 ),
240240 # Chunk 8: Tool call end
@@ -245,7 +245,7 @@ def expected_streaming_chunks():
245245 finish_reason = None ,
246246 tool_calls = None ,
247247 meta = {
248- "model" : "command-r-08-2024 " ,
248+ "model" : "command-a-03-2025 " ,
249249 },
250250 ),
251251 # Chunk 9: Tool call start - second tool
@@ -263,7 +263,7 @@ def expected_streaming_chunks():
263263 )
264264 ],
265265 meta = {
266- "model" : "command-r-08-2024 " ,
266+ "model" : "command-a-03-2025 " ,
267267 "tool_call_id" : "call_weather_berlin_456" ,
268268 },
269269 ),
@@ -281,7 +281,7 @@ def expected_streaming_chunks():
281281 )
282282 ],
283283 meta = {
284- "model" : "command-r-08-2024 " ,
284+ "model" : "command-a-03-2025 " ,
285285 },
286286 ),
287287 # Chunk 11: Tool call delta - more second tool arguments
@@ -298,7 +298,7 @@ def expected_streaming_chunks():
298298 )
299299 ],
300300 meta = {
301- "model" : "command-r-08-2024 " ,
301+ "model" : "command-a-03-2025 " ,
302302 },
303303 ),
304304 # Chunk 12: Tool call delta - second city name
@@ -315,7 +315,7 @@ def expected_streaming_chunks():
315315 )
316316 ],
317317 meta = {
318- "model" : "command-r-08-2024 " ,
318+ "model" : "command-a-03-2025 " ,
319319 },
320320 ),
321321 # Chunk 13: Tool call delta - closing brace for second tool
@@ -332,7 +332,7 @@ def expected_streaming_chunks():
332332 )
333333 ],
334334 meta = {
335- "model" : "command-r-08-2024 " ,
335+ "model" : "command-a-03-2025 " ,
336336 },
337337 ),
338338 # Chunk 14: Tool call end - second tool
@@ -343,7 +343,7 @@ def expected_streaming_chunks():
343343 finish_reason = None ,
344344 tool_calls = None ,
345345 meta = {
346- "model" : "command-r-08-2024 " ,
346+ "model" : "command-a-03-2025 " ,
347347 },
348348 ),
349349 # Chunk 15: Message end with finish reason and usage
@@ -354,7 +354,7 @@ def expected_streaming_chunks():
354354 finish_reason = "tool_calls" ,
355355 tool_calls = None ,
356356 meta = {
357- "model" : "command-r-08-2024 " ,
357+ "model" : "command-a-03-2025 " ,
358358 "finish_reason" : "TOOL_CALLS" ,
359359 "usage" : {
360360 "prompt_tokens" : 9 ,
@@ -373,7 +373,7 @@ def test_convert_cohere_chunk_to_streaming_chunk_complete_sequence(self, cohere_
373373 for cohere_chunk , haystack_chunk in zip (cohere_chunks , expected_streaming_chunks ):
374374 stream_chunk = _convert_cohere_chunk_to_streaming_chunk (
375375 chunk = cohere_chunk ,
376- model = "command-r-08-2024 " ,
376+ model = "command-a-03-2025 " ,
377377 )
378378 assert stream_chunk == haystack_chunk
379379
0 commit comments