From e55fb571385b73a543b00049e8b240eb75fa14f3 Mon Sep 17 00:00:00 2001 From: eduardruzga Date: Wed, 13 Nov 2024 22:22:08 +0200 Subject: [PATCH] Fix google api key bug --- app/lib/.server/llm/model.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/lib/.server/llm/model.ts b/app/lib/.server/llm/model.ts index 1babe7a2c..13f3555e9 100644 --- a/app/lib/.server/llm/model.ts +++ b/app/lib/.server/llm/model.ts @@ -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); }