feat: add Mistral Devstral 2 model support

- Add Devstral 2 models (devstral-latest, devstral-medium-latest, devstral-2512)
- Add Devstral Small 2 models (labs-devstral-small-2512, devstral-small-latest)
- Update all models to 256k context window
- Set image support for all new models as per documentation
- Configure pricing: Devstral 2 at $0.4/$2.0 per M tokens, Devstral Small 2 at $0.1/$0.3 per M tokens

Fixes #9951
This commit is contained in:
Roo Code 2025-12-09 21:06:23 +00:00
parent 83787a76ef
commit 0aba3db519

View file

@ -15,15 +15,53 @@ export const mistralModels = {
inputPrice: 2.0,
outputPrice: 5.0,
},
"devstral-medium-latest": {
// Devstral 2 models - https://docs.mistral.ai/models/devstral-2-25-12
"devstral-latest": {
maxTokens: 8192,
contextWindow: 131_000,
contextWindow: 256_000,
supportsImages: true,
supportsPromptCache: false,
supportsNativeTools: true,
inputPrice: 0.4,
outputPrice: 2.0,
},
"devstral-medium-latest": {
maxTokens: 8192,
contextWindow: 256_000,
supportsImages: true,
supportsPromptCache: false,
supportsNativeTools: true,
inputPrice: 0.4,
outputPrice: 2.0,
},
"devstral-2512": {
maxTokens: 8192,
contextWindow: 256_000,
supportsImages: true,
supportsPromptCache: false,
supportsNativeTools: true,
inputPrice: 0.4,
outputPrice: 2.0,
},
// Devstral Small 2 - https://docs.mistral.ai/models/devstral-small-2-25-12
"labs-devstral-small-2512": {
maxTokens: 8192,
contextWindow: 256_000,
supportsImages: true,
supportsPromptCache: false,
supportsNativeTools: true,
inputPrice: 0.1,
outputPrice: 0.3,
},
"devstral-small-latest": {
maxTokens: 8192,
contextWindow: 256_000,
supportsImages: true,
supportsPromptCache: false,
supportsNativeTools: true,
inputPrice: 0.1,
outputPrice: 0.3,
},
"mistral-medium-latest": {
maxTokens: 8192,
contextWindow: 131_000,