Skip to content

Commit b39408d

Browse files
authored
Fix createGoogleGenerativeAI arguments
Fixes the arguments passed to createGoogleGenerativeAI to pass an object
1 parent 341eee2 commit b39408d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/lib/.server/llm/model.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ export function getMistralModel(apiKey: string, model: string) {
4141
}
4242

4343
export function getGoogleModel(apiKey: string, model: string) {
44-
const google = createGoogleGenerativeAI(
44+
const google = createGoogleGenerativeAI({
4545
apiKey,
46-
);
46+
});
4747

4848
return google(model);
4949
}

0 commit comments

Comments
 (0)