Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 46 additions & 2 deletions packages/types/src/providers/mistral.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,58 @@ export const mistralModels = {
inputPrice: 2.0,
outputPrice: 5.0,
},
// Devstral 2 models - https://docs.mistral.ai/models/devstral-2-25-12
"devstral-latest": {
maxTokens: 8192,
contextWindow: 256_000,
supportsImages: true,
supportsPromptCache: false,
supportsNativeTools: true,
defaultToolProtocol: "native",
inputPrice: 0.4,
outputPrice: 2.0,
},
"devstral-medium-latest": {
maxTokens: 8192,
contextWindow: 131_000,
contextWindow: 256_000,
supportsImages: true,
supportsPromptCache: false,
supportsNativeTools: true,
defaultToolProtocol: "native",
inputPrice: 0.4,
outputPrice: 2.0,
},
"devstral-2512": {
maxTokens: 8192,
contextWindow: 256_000,
supportsImages: true,
supportsPromptCache: false,
supportsNativeTools: true,
defaultToolProtocol: "native",
inputPrice: 0.4,
outputPrice: 2.0,
},
// Devstral Small 2 models - https://docs.mistral.ai/models/devstral-small-2-25-12
"devstral-small-latest": {
maxTokens: 8192,
contextWindow: 256_000,
supportsImages: true,
supportsPromptCache: false,
supportsNativeTools: true,
defaultToolProtocol: "native",
inputPrice: 0.1,
outputPrice: 0.3,
},
"labs-devstral-small-2512": {
maxTokens: 8192,
contextWindow: 256_000,
supportsImages: true,
supportsPromptCache: false,
supportsNativeTools: true,
defaultToolProtocol: "native",
inputPrice: 0.1,
outputPrice: 0.3,
},
"mistral-medium-latest": {
maxTokens: 8192,
contextWindow: 131_000,
Expand Down Expand Up @@ -98,4 +140,6 @@ export const mistralModels = {
},
} as const satisfies Record<string, ModelInfo>

export const MISTRAL_DEFAULT_TEMPERATURE = 1
// Recommended temperature for Devstral 2 models per Mistral Vibe CLI
// https://github.com/mistralai/mistral-vibe/blob/main/vibe/core/config.py
export const MISTRAL_DEFAULT_TEMPERATURE = 0.2
Comment on lines +143 to +145
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changing MISTRAL_DEFAULT_TEMPERATURE from 1 to 0.2 affects ALL Mistral models, not just the new Devstral 2 models. The fallback temperature in src/api/providers/mistral.ts applies this to every Mistral model when no custom temperature is set. The Vibe CLI recommendation for 0.2 is specific to Devstral 2, but this change will alter behavior for existing users of mistral-large-latest, codestral-latest, mistral-small-latest, etc. Consider using the defaultTemperature field in the model definitions to set model-specific temperatures for the new Devstral 2 models instead of changing the global default.

Fix it with Roo Code or mention @roomote and request a fix.

Loading