fix: Set default model ID in MistralHandler if not provided

This commit is contained in:
d.o.it 2025-02-14 17:03:05 +01:00
parent 8a5563b520
commit 2fa8dc7291

View file

@ -35,7 +35,7 @@ export class MistralHandler implements ApiHandler {
}
private getBaseUrl(): string {
const modelId = this.options.apiModelId
const modelId = this.options.apiModelId ?? mistralDefaultModelId
if (modelId?.startsWith("codestral-")) {
return this.options.mistralCodestralUrl || "https://codestral.mistral.ai"
}