Fix google api key bug
Browse files
app/lib/.server/llm/model.ts
CHANGED
@@ -41,9 +41,9 @@ export function getMistralModel(apiKey: string, model: string) {
|
|
41 |
}
|
42 |
|
43 |
export function getGoogleModel(apiKey: string, model: string) {
|
44 |
-
const google = createGoogleGenerativeAI(
|
45 |
apiKey,
|
46 |
-
);
|
47 |
|
48 |
return google(model);
|
49 |
}
|
|
|
41 |
}
|
42 |
|
43 |
export function getGoogleModel(apiKey: string, model: string) {
|
44 |
+
const google = createGoogleGenerativeAI({
|
45 |
apiKey,
|
46 |
+
});
|
47 |
|
48 |
return google(model);
|
49 |
}
|