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

fix: gemini create model error #158

Merged
merged 1 commit into from
Nov 15, 2024
Merged

Conversation

dmaksimov
Copy link

Fixes the arguments passed to createGoogleGenerativeAI. It should be an object.

Fixes the arguments passed to createGoogleGenerativeAI to pass an object
@dmaksimov dmaksimov changed the title Fix Gemini error fix: Gemini create model error Nov 2, 2024
@dmaksimov dmaksimov changed the title fix: Gemini create model error fix: gemini create model error Nov 2, 2024
@arthurbarros
Copy link

arthurbarros commented Nov 2, 2024

Really need this to be merged.

I've tested it and worked

@radumalica
Copy link

doesn't work for me, until I added { apiKey } in the function instead of apiKey i got an error from Google AI SDK saying that apiKey must be passed over, the function doesn't work with env variables.

Copy link

@mtmfahathdev mtmfahathdev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I also noticed this issue and fixed it locally it works perfectly. please merge it, thanks

@coleam00
Copy link
Collaborator

Nice work @dmaksimov, merging now!

@coleam00 coleam00 merged commit 57c0236 into stackblitz-labs:main Nov 15, 2024
1 of 3 checks passed
jhillbht pushed a commit to jhillbht/bolt.new-any-llm that referenced this pull request Jan 27, 2025
jhillbht pushed a commit to jhillbht/bolt.new-any-llm that referenced this pull request Jan 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants