Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Registry not accepting google provider #2204

Closed
Gerosullivan opened this issue Jul 8, 2024 · 2 comments
Closed

Registry not accepting google provider #2204

Gerosullivan opened this issue Jul 8, 2024 · 2 comments

Comments

@Gerosullivan
Copy link

Description

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"

export const registry = createProviderRegistry({
google: createGoogleGenerativeAI({
apiKey: process.env.GOOGLE_GEMINI_API_KEY
})
})

Additional context

No response

@lgrammel
Copy link
Collaborator

lgrammel commented Jul 8, 2024

@Gerosullivan have you updated the @ai-sdk/google package (and ai) to the latest versions?

@lgrammel
Copy link
Collaborator

lgrammel commented Jul 12, 2024

Verified that this works with the current version of the google provider and the ai library.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants