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 compatibility issue between GoogleGenerativeAIProvider and Provider when using experimental_createProviderRegistry; will not accept Google Generative AI provider instance from @ai-sdk/google Type 'GoogleGenerativeAIProvider' is not assignable to type 'Provider'
Code example
import { createGoogleGenerativeAI } from "@ai-sdk/google"
import { experimental_createProviderRegistry as createProviderRegistry } from "ai"
Description
I'm encountering a type compatibility issue between
GoogleGenerativeAIProvider
andProvider
when usingexperimental_createProviderRegistry
; will not accept Google Generative AI provider instance from@ai-sdk/google
Type 'GoogleGenerativeAIProvider' is not assignable to type 'Provider'
Code example
import { createGoogleGenerativeAI } from "@ai-sdk/google"
import { experimental_createProviderRegistry as createProviderRegistry } from "ai"
export const registry = createProviderRegistry({
google: createGoogleGenerativeAI({
apiKey: process.env.GOOGLE_GEMINI_API_KEY
})
})
Additional context
No response
The text was updated successfully, but these errors were encountered: