cookbook icon indicating copy to clipboard operation
cookbook copied to clipboard

Updated quickstarts/Tuning.ipynb to use new google-genai SDK (#446)

Open sbeeredd04 opened this issue 7 months ago • 2 comments

This pull request includes a small change to the quickstarts/file-api/requirements.txt and quickstarts/Tuning.ipynb files. The change updates a dependency by replacing google-generativeai with google-genai to reflect the correct package name, and modifies all the subsequent code cells in the notebook to use the latest SDK.

sbeeredd04 avatar May 22 '25 06:05 sbeeredd04

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@Giom-V I have made updates to this notebook. Please let me know if any changes are needed.

sbeeredd04 avatar May 22 '25 06:05 sbeeredd04

@andycandy @Giom-V I just updated the notebook, lmk if there's anything else I should be doing

sbeeredd04 avatar Jun 04 '25 04:06 sbeeredd04

Thanks so much for your work on this, @sbeeredd04! There’s just a bit of code cleanup we might need to address later. Also, since part of the code is currently using deprecated elements, it might be better to hold off on merging this until the updated functionality becomes available in the google-genai package. That way, you can implement the full upgrade in one go, keeping everything consistent instead of mixing updated and outdated parts.

andycandy avatar Jun 04 '25 19:06 andycandy

Okay, that sounds good. Do you have any other suggestions that I could work on or need help with?

sbeeredd04 avatar Jun 04 '25 22:06 sbeeredd04

This has to be closed as #804 is supposed to be removing the Tuning notebook and replacing it with a placeholder.

andycandy avatar Jun 18 '25 06:06 andycandy

@sbeeredd04 Sorry that the work you did could not make it. We recently decided to stop supporting tuning with the Gemini API and only with Vertex.

Giom-V avatar Jun 18 '25 10:06 Giom-V