Repository navigation
chore(genai): upgrade remaining Gen AI sample directories to google-genai 3.0.0 and Python 3.12 - #14811
Open
iennae wants to merge 2 commits into
Open
chore(genai): upgrade remaining Gen AI sample directories to google-genai 3.0.0 and Python 3.12#14811iennae wants to merge 2 commits into
iennae wants to merge 2 commits into
Conversation
…enai 3.0.0 and Python 3.12 These directories pinned google-genai 1.7.0 to 2.29.0 and tested on Python 3.10 (end of life) and 3.14. They need no sample code changes. Changes: - Directories: image_generation, video_generation, live, model_optimizer, template_folder, model_garden/anthropic, people-and-planet-ai/image-classification. - Pin `google-genai==3.0.0` and test on Python 3.12 (3.14 unchanged). genai/live already tested 3.12. Testing: Live tests ran against a Google Cloud test project on Python 3.12. Every directory with a failure was also run with the pins from `main`: no test that passes on `main` fails with these changes. Remaining failures are listed below and also fail on `main`. - Pass: image_generation 7/7, people-and-planet-ai/image-classification 5/5, template_folder 1/1. - video_generation 3/8 (on `main`, 0/8: 1.43.0 doesn't support `GOOGLE_GENAI_USE_ENTERPRISE`). The other 5 use Veo models that aren't available in the test project. - live 5/15: the other 10 fail the same way on `main` (the native-audio model rejects text output, model access, or `simpleaudio` is missing). Moving to `gemini-3.8-live` needs sample changes and is a follow-up before `gemini-live-2.5-flash-native-audio` retires on December 13, 2026. - model_optimizer 0/1 and model_garden/anthropic 0/2 fail the same way on `main` (the model isn't available or is retired, and the BigQuery test data is in another project).
Contributor
There was a problem hiding this comment.
Code Review
This pull request upgrades the google-genai dependency to version 3.0.0 across multiple directories and updates the noxfile_config.py files to test Python 3.12 instead of Python 3.10. Feedback is provided to remove an outdated comment in people-and-planet-ai/image-classification/noxfile_config.py regarding Apache Beam's lack of support for Python 3.12, as Python 3.12 is now being tested.
…xfile_config The image-classification noxfile_config.py said Apache Beam doesn't support Python 3.12, but this directory now tests on Python 3.12 and its tests pass there (5/5 live). Remove the outdated note so the test configuration isn't misleading.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
These directories pinned google-genai 1.7.0 to 2.29.0 and tested on Python 3.10 (end of life) and 3.14. They need no sample code changes.
Changes
google-genai==3.0.0and test on Python 3.12 (3.14 unchanged). genai/live already tested 3.12.Testing
Live tests ran against a Google Cloud test project on Python 3.12. Every directory with a failure was also run with the pins from
main: no test that passes onmainfails with these changes. Remaining failures are listed below and also fail onmain.main, 0/8: 1.43.0 doesn't supportGOOGLE_GENAI_USE_ENTERPRISE). The other 5 use Veo models that aren't available in the test project.main(the native-audio model rejects text output, model access, orsimpleaudiois missing). Moving togemini-3.8-liveneeds sample changes and is a follow-up beforegemini-live-2.5-flash-native-audioretires on December 13, 2026.main(the model isn't available or is retired, and the BigQuery test data is in another project).Part of the google-genai 3.0.0 and Python 3.12 update of the Gen AI samples, split into one PR per sample directory (small directories are grouped).
Checklist
Testing
Compliance & Style
Post-Approval Actions