feat(py/plugins/google-genai): bump google-genai to 2.14.0 for InteractionsAPI - #5839
Draft
hilariie wants to merge 2 commits into
Draft
feat(py/plugins/google-genai): bump google-genai to 2.14.0 for InteractionsAPI#5839hilariie wants to merge 2 commits into
hilariie wants to merge 2 commits into
Conversation
Contributor
There was a problem hiding this comment.
Code Review
This pull request updates the dependency requirement for google-genai to >=2.14.0,<3.0.0 in pyproject.toml and updates the uv.lock file accordingly. The reviewer points out a potential dependency resolution conflict: since google-genai is bumped to version 2.x, keeping the floor for google-cloud-aiplatform at >=1.77.0 may cause backtracking because older versions of google-cloud-aiplatform restrict google-genai to <2.0.0. It is recommended to update the google-cloud-aiplatform dependency floor to >=1.153.0.
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.
Bumps google-genai from 1.63.0 to 2.14.0 for the Interactions API, capped below 3.0.0 since the SDK schedules removal of
generate_imagesandgenerate_videos(prompt=...)in its next major.2.14.0 is the version this stack is written and tested against rather than a hard floor. The interactions symbols we use (
Stepand its subtypes,CreateModelInteraction,ModalityTokens,Usage) are all present from 2.9.0, but the surface kept moving after that: 2.11.0 droppedcached_content,presence_penaltyandfrequency_penaltyfrom the interactions config, and 2.12.1 fixed interaction normalization. #5806 independently landed on the same 2.14.0 floor.Audited the changelog between the two versions against our call sites. All breaking changes are scoped to the new interactions surface, which nothing used before this stack. Imagen and Veo now emit SDK deprecation warnings but behave the same; the SDK's
experimental_warningdecorator warns once and calls straight through.Worth knowing about the lockfile diff: this forces
google-cloud-aiplatformfrom 1.137.0 to 1.162.0. aiplatform up to 1.151.0 pinsgoogle-genai<2.0.0, and 1.153.0 is the first release widening that to<3.0.0, so any 2.x floor drags it along.google-cloud-storageis not a new dependency, uv just split it into marker-scoped entries for py<3.13 and py>=3.13.rsadrops out because google-auth 2.56.2 no longer needs it.requires-pythonstays at>=3.10with the same 3.10 to 3.14 classifiers, so the test matrix is unaffected.Verified locally and imported google-genai 2.14.0 on 3.10 and 3.14 to confirm both matrix edges.
Part of #5804. First PR of the Vertex Lyria-3 stack.