Fix createGoogleGenerativeAI arguments

Fixes the arguments passed to createGoogleGenerativeAI to pass an object
This commit is contained in:
David Maksimov 2024-11-02 09:36:13 -05:00 committed by GitHub
parent 64e95a0553
commit 732126312f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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);
}