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/googleType '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