@@ -123,7 +123,7 @@ def completion_message(
123
123
id = '123' ,
124
124
choices = [MistralChatCompletionChoice (finish_reason = 'stop' , index = 0 , message = message )],
125
125
created = 1704067200 if with_created else None , # 2024-01-01
126
- model = 'mistral-large-latest ' ,
126
+ model = 'mistral-large-123 ' ,
127
127
object = 'chat.completion' ,
128
128
usage = usage or MistralUsageInfo (prompt_tokens = 1 , completion_tokens = 1 , total_tokens = 1 ),
129
129
)
@@ -217,13 +217,13 @@ async def test_multiple_completions(allow_model_requests: None):
217
217
ModelRequest (parts = [UserPromptPart (content = 'hello' , timestamp = IsNow (tz = timezone .utc ))]),
218
218
ModelResponse (
219
219
parts = [TextPart (content = 'world' )],
220
- model_name = 'mistral-large-latest ' ,
220
+ model_name = 'mistral-large-123 ' ,
221
221
timestamp = IsNow (tz = timezone .utc ),
222
222
),
223
223
ModelRequest (parts = [UserPromptPart (content = 'hello again' , timestamp = IsNow (tz = timezone .utc ))]),
224
224
ModelResponse (
225
225
parts = [TextPart (content = 'hello again' )],
226
- model_name = 'mistral-large-latest ' ,
226
+ model_name = 'mistral-large-123 ' ,
227
227
timestamp = datetime (2024 , 1 , 1 , 0 , 0 , tzinfo = timezone .utc ),
228
228
),
229
229
]
@@ -269,19 +269,19 @@ async def test_three_completions(allow_model_requests: None):
269
269
ModelRequest (parts = [UserPromptPart (content = 'hello' , timestamp = IsNow (tz = timezone .utc ))]),
270
270
ModelResponse (
271
271
parts = [TextPart (content = 'world' )],
272
- model_name = 'mistral-large-latest ' ,
272
+ model_name = 'mistral-large-123 ' ,
273
273
timestamp = datetime (2024 , 1 , 1 , 0 , 0 , tzinfo = timezone .utc ),
274
274
),
275
275
ModelRequest (parts = [UserPromptPart (content = 'hello again' , timestamp = IsNow (tz = timezone .utc ))]),
276
276
ModelResponse (
277
277
parts = [TextPart (content = 'hello again' )],
278
- model_name = 'mistral-large-latest ' ,
278
+ model_name = 'mistral-large-123 ' ,
279
279
timestamp = datetime (2024 , 1 , 1 , 0 , 0 , tzinfo = timezone .utc ),
280
280
),
281
281
ModelRequest (parts = [UserPromptPart (content = 'final message' , timestamp = IsNow (tz = timezone .utc ))]),
282
282
ModelResponse (
283
283
parts = [TextPart (content = 'final message' )],
284
- model_name = 'mistral-large-latest ' ,
284
+ model_name = 'mistral-large-123 ' ,
285
285
timestamp = datetime (2024 , 1 , 1 , 0 , 0 , tzinfo = timezone .utc ),
286
286
),
287
287
]
@@ -396,7 +396,7 @@ class CityLocation(BaseModel):
396
396
tool_call_id = '123' ,
397
397
)
398
398
],
399
- model_name = 'mistral-large-latest ' ,
399
+ model_name = 'mistral-large-123 ' ,
400
400
timestamp = datetime (2024 , 1 , 1 , 0 , 0 , tzinfo = timezone .utc ),
401
401
),
402
402
ModelRequest (
@@ -458,7 +458,7 @@ class CityLocation(BaseModel):
458
458
tool_call_id = '123' ,
459
459
)
460
460
],
461
- model_name = 'mistral-large-latest ' ,
461
+ model_name = 'mistral-large-123 ' ,
462
462
timestamp = datetime (2024 , 1 , 1 , 0 , 0 , tzinfo = timezone .utc ),
463
463
),
464
464
ModelRequest (
@@ -519,7 +519,7 @@ async def test_request_result_type_with_arguments_str_response(allow_model_reque
519
519
tool_call_id = '123' ,
520
520
)
521
521
],
522
- model_name = 'mistral-large-latest ' ,
522
+ model_name = 'mistral-large-123 ' ,
523
523
timestamp = datetime (2024 , 1 , 1 , 0 , 0 , tzinfo = timezone .utc ),
524
524
),
525
525
ModelRequest (
@@ -1104,7 +1104,7 @@ async def get_location(loc_name: str) -> str:
1104
1104
tool_call_id = '1' ,
1105
1105
)
1106
1106
],
1107
- model_name = 'mistral-large-latest ' ,
1107
+ model_name = 'mistral-large-123 ' ,
1108
1108
timestamp = datetime (2024 , 1 , 1 , 0 , 0 , tzinfo = timezone .utc ),
1109
1109
),
1110
1110
ModelRequest (
@@ -1125,7 +1125,7 @@ async def get_location(loc_name: str) -> str:
1125
1125
tool_call_id = '2' ,
1126
1126
)
1127
1127
],
1128
- model_name = 'mistral-large-latest ' ,
1128
+ model_name = 'mistral-large-123 ' ,
1129
1129
timestamp = datetime (2024 , 1 , 1 , 0 , 0 , tzinfo = timezone .utc ),
1130
1130
),
1131
1131
ModelRequest (
@@ -1140,7 +1140,7 @@ async def get_location(loc_name: str) -> str:
1140
1140
),
1141
1141
ModelResponse (
1142
1142
parts = [TextPart (content = 'final response' )],
1143
- model_name = 'mistral-large-latest ' ,
1143
+ model_name = 'mistral-large-123 ' ,
1144
1144
timestamp = datetime (2024 , 1 , 1 , 0 , 0 , tzinfo = timezone .utc ),
1145
1145
),
1146
1146
]
@@ -1244,7 +1244,7 @@ async def get_location(loc_name: str) -> str:
1244
1244
tool_call_id = '1' ,
1245
1245
)
1246
1246
],
1247
- model_name = 'mistral-large-latest ' ,
1247
+ model_name = 'mistral-large-123 ' ,
1248
1248
timestamp = datetime (2024 , 1 , 1 , 0 , 0 , tzinfo = timezone .utc ),
1249
1249
),
1250
1250
ModelRequest (
@@ -1265,7 +1265,7 @@ async def get_location(loc_name: str) -> str:
1265
1265
tool_call_id = '2' ,
1266
1266
)
1267
1267
],
1268
- model_name = 'mistral-large-latest ' ,
1268
+ model_name = 'mistral-large-123 ' ,
1269
1269
timestamp = datetime (2024 , 1 , 1 , 0 , 0 , tzinfo = timezone .utc ),
1270
1270
),
1271
1271
ModelRequest (
@@ -1286,7 +1286,7 @@ async def get_location(loc_name: str) -> str:
1286
1286
tool_call_id = '1' ,
1287
1287
)
1288
1288
],
1289
- model_name = 'mistral-large-latest ' ,
1289
+ model_name = 'mistral-large-123 ' ,
1290
1290
timestamp = datetime (2024 , 1 , 1 , 0 , 0 , tzinfo = timezone .utc ),
1291
1291
),
1292
1292
ModelRequest (
0 commit comments