Skip to content
Open
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions src/integrations/brands/mistral.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export default defineBrand({
supportsPreciseTokenCount: false,
},
modelIds: [
'mistral-vibe-cli-latest',
'mistral-large-latest',
'mistral-small-latest',
'devstral-latest',
Expand Down
3 changes: 2 additions & 1 deletion src/integrations/gateways/mistral.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export default defineGateway({
label: 'Mistral AI',
category: 'hosted',
defaultBaseUrl: 'https://api.mistral.ai/v1',
defaultModel: 'devstral-latest',
defaultModel: 'mistral-vibe-cli-latest',
supportsModelRouting: true,
setup: {
requiresAuth: true,
Expand Down Expand Up @@ -47,6 +47,7 @@ export default defineGateway({
catalog: {
source: 'static',
models: [
{ id: 'mistral-vibe-cli', apiName: 'mistral-vibe-cli-latest', label: 'Vibe CLI Latest', modelDescriptorId: 'mistral-vibe-cli-latest' },
{ id: 'mistral-devstral', apiName: 'devstral-latest', label: 'Devstral Latest', modelDescriptorId: 'devstral-latest' },
],
},
Expand Down
1 change: 1 addition & 0 deletions src/integrations/models/mistral.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ function mistralModel(
export default [
mistralModel('mistral-large-latest', 'Mistral Large Latest', 256_000, 32_768),
mistralModel('mistral-small-latest', 'Mistral Small Latest', 256_000, 32_768),
mistralModel('mistral-vibe-cli-latest', 'Vibe CLI Latest', 262_144, 32_768),
mistralModel('devstral-latest', 'Devstral Latest', 256_000, 32_768),
mistralModel('ministral-3b-latest', 'Ministral 3B Latest', 256_000, 32_768),
mistralModel('mixtral-8x7b-32768', 'Mixtral 8x7B 32768', 32_768, 32_768),
Expand Down
2 changes: 1 addition & 1 deletion src/utils/providerProfile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export const DEFAULT_GEMINI_BASE_URL =
'https://generativelanguage.googleapis.com/v1beta/openai'
export const DEFAULT_GEMINI_MODEL = 'gemini-3-flash-preview'
export const DEFAULT_MISTRAL_BASE_URL = 'https://api.mistral.ai/v1'
export const DEFAULT_MISTRAL_MODEL = 'devstral-latest'
export const DEFAULT_MISTRAL_MODEL = 'mistral-vibe-cli-latest'

const PROFILE_ENV_KEYS = [
'CLAUDE_CODE_USE_OPENAI',
Expand Down
6 changes: 6 additions & 0 deletions src/utils/providerProfiles.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2041,3 +2041,9 @@ describe('setActiveProviderProfile model cache', () => {
])
})
})

test('DEFAULT_MISTRAL_MODEL matches the mistral gateway defaultModel', async () => {
const { DEFAULT_MISTRAL_MODEL } = await import('./providerProfile.js')
const { default: mistralGateway } = await import('../integrations/gateways/mistral.js')
expect(DEFAULT_MISTRAL_MODEL).toBe(mistralGateway.defaultModel)
})
Loading