Skip to content

Commit

Permalink
Fix createGoogleGenerativeAI arguments
Browse files Browse the repository at this point in the history
Fixes the arguments passed to createGoogleGenerativeAI to pass an object
  • Loading branch information
dmaksimov authored Nov 2, 2024
1 parent 64e95a0 commit 7321263
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/lib/.server/llm/model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ export function getMistralModel(apiKey: string, model: string) {
}

export function getGoogleModel(apiKey: string, model: string) {
const google = createGoogleGenerativeAI(
const google = createGoogleGenerativeAI({
apiKey,
);
});

return google(model);
}
Expand Down

0 comments on commit 7321263

Please sign in to comment.