mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-08-28 05:27:24 +00:00
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:
parent
83787a76ef
commit
0aba3db519
1 changed files with 40 additions and 2 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue