You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm encountering a type error when defining an Agent with a Google Generative AI model. The error message indicates a mismatch in the LanguageModelV1 type between different versions of @ai-sdk/provider.
Code
import { createGoogleGenerativeAI } from '@ai-sdk/google';
const google = createGoogleGenerativeAI({
apiKey: '',
});
export const chefAgent = new Agent({
name: 'chefAgent',
instructions:
'You are Michel",
model: google('gemini-2.0-flash-001'),
memory,
});
The text was updated successfully, but these errors were encountered:
I'm encountering a type error when defining an Agent with a Google Generative AI model. The error message indicates a mismatch in the LanguageModelV1 type between different versions of @ai-sdk/provider.
Code
The text was updated successfully, but these errors were encountered: