Skip to content

Commit 7a614a1

Browse files
currentsuspectOpenClaude (mimo-v2.5-pro)
andcommitted
fix: update DEFAULT_MISTRAL_MODEL and add drift guard test
The /provider interactive setup still defaulted to devstral-latest via DEFAULT_MISTRAL_MODEL, even though the gateway descriptor points at mistral-vibe-cli-latest. Update the constant and add a test that asserts DEFAULT_MISTRAL_MODEL matches the gateway defaultModel to prevent future drift. Co-Authored-By: OpenClaude (mimo-v2.5-pro) <openclaude@gitlawb.com>
1 parent 9505c5b commit 7a614a1

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

src/utils/providerProfile.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export const DEFAULT_GEMINI_BASE_URL =
4444
'https://generativelanguage.googleapis.com/v1beta/openai'
4545
export const DEFAULT_GEMINI_MODEL = 'gemini-3-flash-preview'
4646
export const DEFAULT_MISTRAL_BASE_URL = 'https://api.mistral.ai/v1'
47-
export const DEFAULT_MISTRAL_MODEL = 'devstral-latest'
47+
export const DEFAULT_MISTRAL_MODEL = 'mistral-vibe-cli-latest'
4848

4949
const PROFILE_ENV_KEYS = [
5050
'CLAUDE_CODE_USE_OPENAI',

src/utils/providerProfiles.test.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2041,3 +2041,9 @@ describe('setActiveProviderProfile model cache', () => {
20412041
])
20422042
})
20432043
})
2044+
2045+
test('DEFAULT_MISTRAL_MODEL matches the mistral gateway defaultModel', async () => {
2046+
const { DEFAULT_MISTRAL_MODEL } = await import('./providerProfile.js')
2047+
const { default: mistralGateway } = await import('../integrations/gateways/mistral.js')
2048+
expect(DEFAULT_MISTRAL_MODEL).toBe(mistralGateway.defaultModel)
2049+
})

0 commit comments

Comments
 (0)