Skip to content

Commit 1d1c545

Browse files
author
Drake Thomsen
committed
fix(mistral): clean up model names and add provider type constants
- Remove redundant "Mistral: " prefix from non-flagship model names - Add TypeMistral to known provider types - Add InferenceProviderMistral to known inference providers - Register Mistral in KnownProviders() and KnownProviderTypes()
1 parent e471727 commit 1d1c545

2 files changed

Lines changed: 32 additions & 28 deletions

File tree

internal/providers/configs/mistral.json

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
},
6262
{
6363
"id": "codestral-2508",
64-
"name": "Mistral: Codestral 2508",
64+
"name": "Codestral 2508",
6565
"cost_per_1m_in": 0.3,
6666
"cost_per_1m_out": 0.9,
6767
"cost_per_1m_in_cached": 0,
@@ -74,7 +74,7 @@
7474
},
7575
{
7676
"id": "devstral-medium",
77-
"name": "Mistral: Devstral Medium",
77+
"name": "Devstral Medium",
7878
"cost_per_1m_in": 0.4,
7979
"cost_per_1m_out": 2,
8080
"cost_per_1m_in_cached": 0,
@@ -87,7 +87,7 @@
8787
},
8888
{
8989
"id": "devstral-medium-latest",
90-
"name": "Mistral: Devstral Medium (Latest)",
90+
"name": "Devstral Medium (Latest)",
9191
"cost_per_1m_in": 0.4,
9292
"cost_per_1m_out": 2,
9393
"cost_per_1m_in_cached": 0,
@@ -100,7 +100,7 @@
100100
},
101101
{
102102
"id": "devstral-small",
103-
"name": "Mistral: Devstral Small 1.1",
103+
"name": "Devstral Small 1.1",
104104
"cost_per_1m_in": 0.1,
105105
"cost_per_1m_out": 0.3,
106106
"cost_per_1m_in_cached": 0,
@@ -113,7 +113,7 @@
113113
},
114114
{
115115
"id": "devstral-small-latest",
116-
"name": "Mistral: Devstral Small (Latest)",
116+
"name": "Devstral Small (Latest)",
117117
"cost_per_1m_in": 0.1,
118118
"cost_per_1m_out": 0.3,
119119
"cost_per_1m_in_cached": 0,
@@ -126,7 +126,7 @@
126126
},
127127
{
128128
"id": "ministral-14b-2512",
129-
"name": "Mistral: Ministral 3 14B 2512",
129+
"name": "Ministral 3 14B 2512",
130130
"cost_per_1m_in": 0.2,
131131
"cost_per_1m_out": 0.2,
132132
"cost_per_1m_in_cached": 0,
@@ -139,7 +139,7 @@
139139
},
140140
{
141141
"id": "ministral-3b-2512",
142-
"name": "Mistral: Ministral 3 3B 2512",
142+
"name": "Ministral 3 3B 2512",
143143
"cost_per_1m_in": 0.1,
144144
"cost_per_1m_out": 0.1,
145145
"cost_per_1m_in_cached": 0,
@@ -152,7 +152,7 @@
152152
},
153153
{
154154
"id": "ministral-8b-2512",
155-
"name": "Mistral: Ministral 3 8B 2512",
155+
"name": "Ministral 3 8B 2512",
156156
"cost_per_1m_in": 0.15,
157157
"cost_per_1m_out": 0.15,
158158
"cost_per_1m_in_cached": 0,
@@ -165,7 +165,7 @@
165165
},
166166
{
167167
"id": "ministral-3b",
168-
"name": "Mistral: Ministral 3B",
168+
"name": "Ministral 3B",
169169
"cost_per_1m_in": 0.04,
170170
"cost_per_1m_out": 0.04,
171171
"cost_per_1m_in_cached": 0,
@@ -178,7 +178,7 @@
178178
},
179179
{
180180
"id": "ministral-8b",
181-
"name": "Mistral: Ministral 8B",
181+
"name": "Ministral 8B",
182182
"cost_per_1m_in": 0.09999999999999999,
183183
"cost_per_1m_out": 0.09999999999999999,
184184
"cost_per_1m_in_cached": 0,
@@ -191,7 +191,7 @@
191191
},
192192
{
193193
"id": "mistral-7b-instruct",
194-
"name": "Mistral: Mistral 7B Instruct",
194+
"name": "Mistral 7B Instruct",
195195
"cost_per_1m_in": 0.028,
196196
"cost_per_1m_out": 0.054,
197197
"cost_per_1m_in_cached": 0,
@@ -204,7 +204,7 @@
204204
},
205205
{
206206
"id": "mistral-7b-instruct:free",
207-
"name": "Mistral: Mistral 7B Instruct (free)",
207+
"name": "Mistral 7B Instruct (free)",
208208
"cost_per_1m_in": 0,
209209
"cost_per_1m_out": 0,
210210
"cost_per_1m_in_cached": 0,
@@ -217,7 +217,7 @@
217217
},
218218
{
219219
"id": "mistral-large-2512",
220-
"name": "Mistral: Mistral Large 3 2512",
220+
"name": "Mistral Large 3 2512",
221221
"cost_per_1m_in": 0.5,
222222
"cost_per_1m_out": 1.5,
223223
"cost_per_1m_in_cached": 0,
@@ -230,7 +230,7 @@
230230
},
231231
{
232232
"id": "mistral-large-latest",
233-
"name": "Mistral: Mistral Large (Latest)",
233+
"name": "Mistral Large (Latest)",
234234
"cost_per_1m_in": 0.5,
235235
"cost_per_1m_out": 1.5,
236236
"cost_per_1m_in_cached": 0,
@@ -243,7 +243,7 @@
243243
},
244244
{
245245
"id": "mistral-medium-3",
246-
"name": "Mistral: Mistral Medium 3",
246+
"name": "Mistral Medium 3",
247247
"cost_per_1m_in": 0.4,
248248
"cost_per_1m_out": 2,
249249
"cost_per_1m_in_cached": 0,
@@ -256,7 +256,7 @@
256256
},
257257
{
258258
"id": "mistral-medium-3.1",
259-
"name": "Mistral: Mistral Medium 3.1",
259+
"name": "Mistral Medium 3.1",
260260
"cost_per_1m_in": 0.4,
261261
"cost_per_1m_out": 2,
262262
"cost_per_1m_in_cached": 0,
@@ -269,7 +269,7 @@
269269
},
270270
{
271271
"id": "mistral-medium-latest",
272-
"name": "Mistral: Mistral Medium (Latest)",
272+
"name": "Mistral Medium (Latest)",
273273
"cost_per_1m_in": 0.4,
274274
"cost_per_1m_out": 2,
275275
"cost_per_1m_in_cached": 0,
@@ -282,7 +282,7 @@
282282
},
283283
{
284284
"id": "mistral-nemo",
285-
"name": "Mistral: Mistral Nemo",
285+
"name": "Mistral Nemo",
286286
"cost_per_1m_in": 0.15,
287287
"cost_per_1m_out": 0.15,
288288
"cost_per_1m_in_cached": 0,
@@ -295,7 +295,7 @@
295295
},
296296
{
297297
"id": "mistral-small-24b-instruct-2501",
298-
"name": "Mistral: Mistral Small 3",
298+
"name": "Mistral Small 3",
299299
"cost_per_1m_in": 0.7999999999999999,
300300
"cost_per_1m_out": 0.7999999999999999,
301301
"cost_per_1m_in_cached": 0,
@@ -308,7 +308,7 @@
308308
},
309309
{
310310
"id": "mistral-small-3.1-24b-instruct",
311-
"name": "Mistral: Mistral Small 3.1 24B",
311+
"name": "Mistral Small 3.1 24B",
312312
"cost_per_1m_in": 0.03,
313313
"cost_per_1m_out": 0.11,
314314
"cost_per_1m_in_cached": 0,
@@ -321,7 +321,7 @@
321321
},
322322
{
323323
"id": "mistral-small-3.1-24b-instruct:free",
324-
"name": "Mistral: Mistral Small 3.1 24B (free)",
324+
"name": "Mistral Small 3.1 24B (free)",
325325
"cost_per_1m_in": 0,
326326
"cost_per_1m_out": 0,
327327
"cost_per_1m_in_cached": 0,
@@ -334,7 +334,7 @@
334334
},
335335
{
336336
"id": "mistral-small-3.2-24b-instruct",
337-
"name": "Mistral: Mistral Small 3.2 24B",
337+
"name": "Mistral Small 3.2 24B",
338338
"cost_per_1m_in": 0.1,
339339
"cost_per_1m_out": 0.3,
340340
"cost_per_1m_in_cached": 0,
@@ -347,7 +347,7 @@
347347
},
348348
{
349349
"id": "mistral-small-latest",
350-
"name": "Mistral: Mistral Small (Latest)",
350+
"name": "Mistral Small (Latest)",
351351
"cost_per_1m_in": 0.09999999999999999,
352352
"cost_per_1m_out": 0.3,
353353
"cost_per_1m_in_cached": 0,
@@ -360,7 +360,7 @@
360360
},
361361
{
362362
"id": "mixtral-8x22b-instruct",
363-
"name": "Mistral: Mixtral 8x22B Instruct",
363+
"name": "Mixtral 8x22B Instruct",
364364
"cost_per_1m_in": 2,
365365
"cost_per_1m_out": 6,
366366
"cost_per_1m_in_cached": 0,
@@ -373,7 +373,7 @@
373373
},
374374
{
375375
"id": "mixtral-8x7b-instruct",
376-
"name": "Mistral: Mixtral 8x7B Instruct",
376+
"name": "Mixtral 8x7B Instruct",
377377
"cost_per_1m_in": 0.54,
378378
"cost_per_1m_out": 0.54,
379379
"cost_per_1m_in_cached": 0,
@@ -386,7 +386,7 @@
386386
},
387387
{
388388
"id": "pixtral-large-2411",
389-
"name": "Mistral: Pixtral Large 2411",
389+
"name": "Pixtral Large 2411",
390390
"cost_per_1m_in": 2,
391391
"cost_per_1m_out": 6,
392392
"cost_per_1m_in_cached": 0,
@@ -399,7 +399,7 @@
399399
},
400400
{
401401
"id": "mistral-saba",
402-
"name": "Mistral: Saba",
402+
"name": "Saba",
403403
"cost_per_1m_in": 0.19999999999999998,
404404
"cost_per_1m_out": 0.6,
405405
"cost_per_1m_in_cached": 0,
@@ -412,7 +412,7 @@
412412
},
413413
{
414414
"id": "voxtral-small-24b-2507",
415-
"name": "Mistral: Voxtral Small 24B 2507",
415+
"name": "Voxtral Small 24B 2507",
416416
"cost_per_1m_in": 0.09999999999999999,
417417
"cost_per_1m_out": 0.3,
418418
"cost_per_1m_in_cached": 0,

pkg/catwalk/provider.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ const (
1313
TypeAzure Type = "azure"
1414
TypeBedrock Type = "bedrock"
1515
TypeVertexAI Type = "google-vertex"
16+
TypeMistral Type = "mistral"
1617
)
1718

1819
// InferenceProvider represents the inference provider identifier.
@@ -38,6 +39,7 @@ const (
3839
InferenceAIHubMix InferenceProvider = "aihubmix"
3940
InferenceKimiCoding InferenceProvider = "kimi-coding"
4041
InferenceProviderCopilot InferenceProvider = "copilot"
42+
InferenceProviderMistral InferenceProvider = "mistral"
4143
)
4244

4345
// Provider represents an AI provider configuration.
@@ -101,6 +103,7 @@ func KnownProviders() []InferenceProvider {
101103
InferenceAIHubMix,
102104
InferenceKimiCoding,
103105
InferenceProviderCopilot,
106+
InferenceProviderMistral,
104107
}
105108
}
106109

@@ -115,5 +118,6 @@ func KnownProviderTypes() []Type {
115118
TypeAzure,
116119
TypeBedrock,
117120
TypeVertexAI,
121+
TypeMistral,
118122
}
119123
}

0 commit comments

Comments
 (0)