fix type for gemma of groq (#1142)

Signed-off-by: 4t8dd <wanger.xyz@gmail.com>
This commit is contained in:
4t8dbbl 2024-04-20 04:33:37 +08:00 • committed by GitHub
parent 98521a2120
commit 9712a52a27
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -10,7 +10,7 @@ class Groq extends OpenAI {
private static modelConversion: { [key: string]: string } = {
"llama2-70b": "llama2-70b-4096",
"mistral-8x7b": "mixtral-8x7b-32768",
gemma: "gemma-7b-it",
"gemma": "gemma-7b-it",
};
protected _convertModelName(model: string): string {
return Groq.modelConversion[model] ?? model;