diff --git a/core/llm/llms/Mistral.ts b/core/llm/llms/Mistral.ts index bf5794143..c7723f67e 100644 --- a/core/llm/llms/Mistral.ts +++ b/core/llm/llms/Mistral.ts @@ -18,6 +18,13 @@ class Mistral extends OpenAI { }, }; + constructor(options: LLMOptions) { + super(options); + if (options.model.includes("codestral")) { + this.apiBase = "https://codestral.mistral.ai/v1/"; + } + } + private static modelConversion: { [key: string]: string } = { "mistral-7b": "open-mistral-7b", "mistral-8x7b": "open-mixtral-8x7b",