Fix createGoogleGenerativeAI arguments
Fixes the arguments passed to createGoogleGenerativeAI to pass an object
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user