codestral api base

This commit is contained in:
Nate Sesti 2024-05-29 07:03:37 -07:00
parent dfc6347cf3
commit 429f30bee7

View file

@ -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",