-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Update everything to use google-genai SDK #446
Comments
Are there plans to create a google-genai SDK for JS? |
Updating |
I guess we already have it https://github.com/google-gemini/generative-ai-js, currently at |
@markmcd need help in accepting Google contributor licence agreement there is always an server error. |
I also have the same issue. |
@mitrick2 A new typescript unified SDK is on its way. (and BTW, we're also accepting submissions in other languages than Python if you have great examples) |
@charantek1styearbtech @ROHANDWIVEDI2005 @Faakhir30 As for the CLA issue, it's being investigated internally. And it seems it was fixed a couple of hours ago, so please try again and tell me if that still doesn't work. Thanks you all for your contributions! |
Refers #446 * Updated notebook to use genai module * Refactoed imports * Updated Readme Links --------- Signed-off-by: Faakhir30 <[email protected]> Co-authored-by: Guillaume Vernade <[email protected]>
Refers #446 * Updated `examples/Upload_files_to_Colab.ipynb` to use `google-genai` module instead of `generativeai`. * Removing link to the colab I'm removing the link to this colab in the README as I don't think it's worth having it there. While it's good to have this code example, it doesn't really bring any value as an example of the advanced capabilities of Gemini. --------- Signed-off-by: Faakhir30 <[email protected]> Co-authored-by: Guillaume Vernade <[email protected]>
Refers #446 * Updated `examples/Apollo_11.ipynb` to use `google-genai` module instead of `generativeai`. * Update reference in readme * Updating link to file api notebook for a relative one. --------- Signed-off-by: Faakhir30 <[email protected]> Co-authored-by: Guillaume Vernade <[email protected]>
Part of #446 * changed sample.py to use google-genai sdk --------- Co-authored-by: Guillaume Vernade <[email protected]>
Refers #446 * Updated module google-generativeai to use google-genai>=1.0.0 * Refactored imports Signed-off-by: Faakhir30 <[email protected]>
…ini#499) Refers google-gemini#446 * Updated notebook to use genai module * Refactoed imports * Updated Readme Links --------- Signed-off-by: Faakhir30 <[email protected]> Co-authored-by: Guillaume Vernade <[email protected]>
…ni#486) Refers google-gemini#446 * Updated `examples/Upload_files_to_Colab.ipynb` to use `google-genai` module instead of `generativeai`. * Removing link to the colab I'm removing the link to this colab in the README as I don't think it's worth having it there. While it's good to have this code example, it doesn't really bring any value as an example of the advanced capabilities of Gemini. --------- Signed-off-by: Faakhir30 <[email protected]> Co-authored-by: Guillaume Vernade <[email protected]>
Refers google-gemini#446 * Updated `examples/Apollo_11.ipynb` to use `google-genai` module instead of `generativeai`. * Update reference in readme * Updating link to file api notebook for a relative one. --------- Signed-off-by: Faakhir30 <[email protected]> Co-authored-by: Guillaume Vernade <[email protected]>
Part of google-gemini#446 * changed sample.py to use google-genai sdk --------- Co-authored-by: Guillaume Vernade <[email protected]>
Thank you, @Giom-V. I will check the function calling notebook for reference. |
Use |
I've created several PRs that migrate cookbook examples to use the new google-genai SDK as requested in the issue. These migrations maintain the original functionality while updating the API calls to the latest version. PR links:
I've thoroughly tested each example to ensure they run correctly with the updated SDK. Thank you, |
Hi @markmcd, @Giom-V Thank You ![]() ![]() ![]() |
…DK (#446) (#555) This pull request updates the following notebooks to replace google-generativeai with google-genai, aligning with the transition to the new SDK as outlined in #446: * `Caching.ipynb` * `Gemini_Flash_Introduction.ipynb` * `JSON_mode.ipynb` * `Template.ipynb` These changes ensure the notebooks remain compatible with the latest SDK version. This PR addresses #446
|
@Raunak2024 I reviewed it 3 days ago... |
Hi everyone! If this topic is still open, I'd like to contribute — could you let me know exactly what I need to do? |
Thanks for volunteering your help. The easiest is to take one of the notebooks I listed in this post that isn't been worked on (double-check the open pull request just in case). And then migrate them to use the new Be warned that I'll likely ask you to not only update the code but to also correct the wording if it's a bit old and to improve the readability of the code in various ways. You can check past PR to get an idea. |
@ALL, I will be travelling to Google Cloud Next this week, which mean that I won't have much time to review and merge all of your pull requests (especially since there are more and more every day... and think you for that!). I know that some of you wanted to use them to apply for the GSoC, feel free to still use them, even if they haven't been merged yet. |
Hi @Giom-V I made a new PR #679 to update the weaviate example |
Hi @andycandy |
No, thank you tho. It was an old PR which I didn't get time to check back. It's all updated now :) |
Description of the feature request:
Lots of notebooks are using the
google-generativeai
SDK, but now thatgoogle-genai
is at 1.0, we should be using that.e.g.
pip install google-generativeai
needs to be replaced withpip install google-genai
and then relevant code and text needs to be updated.There's lots to do right now, but we can do every notebook independently so this would be a great one to open to community contributions. If you want to work on one, check the open PR list to see if someone has already done it, then just send a PR directly (but stick to one notebook per PR).
And here's the migration guide: https://ai.google.dev/gemini-api/docs/migrate
The text was updated successfully, but these errors were encountered: