Hello,
We use multiple gemini models for our production application and we specifically use the js/ts sdk. There are some feature improvements such as allowing for better schema support which is something we leverage heavily for structured output. For some of our more complex schemas we use OpenAi instead although we would prefer to use Gemini.
The last npm release is version 0.21.0 released October 2,2024 and on Github there is a newer release that is not yet published 0.22.0 released November 17,2024. Releases · google-gemini/generative-ai-js · GitHub
Could you please provide more information regarding this sdk and it’s support? Improvement to the sdk would make us use gemini even more.
Thanks and best
Michael
1 Like
Hi @Michael_Pont,
Welcome to the forum, and thank you for bringing this issue. I understand there have been some new releases of the JavaScript SDK, and the team is working diligently to get a release out with fixes as soon as possible. Sorry for delay in responding to your post. We appreciate your patience.
Cheers!
1 Like
Hi @Michael_Pont
Perhaps you like to look here: @google/genai
To install the SDK, run the following command:
npm install @google/genai
It’s still in preview and has been released recently.
Forget about the generative-ai
package, the new genai
package is the way to go.
Cheers.
3 Likes
Hi @Siva_Sravana_Kumar_N, thanks for letting me know. Yes I saw those changes and have installed the new versions.
Thanks @jkirstaetter , I’ll keep an eye on it and switch over when I eventually have the time.