Skip to content

Commit 2fa8dc7

Browse files
committed
fix: Set default model ID in MistralHandler if not provided
1 parent 8a5563b commit 2fa8dc7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/api/providers/mistral.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export class MistralHandler implements ApiHandler {
3535
}
3636

3737
private getBaseUrl(): string {
38-
const modelId = this.options.apiModelId
38+
const modelId = this.options.apiModelId ?? mistralDefaultModelId
3939
if (modelId?.startsWith("codestral-")) {
4040
return this.options.mistralCodestralUrl || "https://codestral.mistral.ai"
4141
}

0 commit comments

Comments
 (0)