codestral api base
This commit is contained in:
parent
dfc6347cf3
commit
429f30bee7
1 changed files with 7 additions and 0 deletions
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue