Skip to content

feat(py/plugins/google-genai): bump google-genai to 2.14.0 for InteractionsAPI - #5839

Draft
hilariie wants to merge 2 commits into
mainfrom
feat/py-google-genai-2.14.0
Draft

feat(py/plugins/google-genai): bump google-genai to 2.14.0 for InteractionsAPI#5839
hilariie wants to merge 2 commits into
mainfrom
feat/py-google-genai-2.14.0

Conversation

@hilariie

@hilariie hilariie commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

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_images and generate_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 (Step and its subtypes, CreateModelInteraction, ModalityTokens, Usage) are all present from 2.9.0, but the surface kept moving after that: 2.11.0 dropped cached_content, presence_penalty and frequency_penalty from 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_warning decorator warns once and calls straight through.

Worth knowing about the lockfile diff: this forces google-cloud-aiplatform from 1.137.0 to 1.162.0. aiplatform up to 1.151.0 pins google-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-storage is not a new dependency, uv just split it into marker-scoped entries for py<3.13 and py>=3.13. rsa drops out because google-auth 2.56.2 no longer needs it. requires-python stays at >=3.10 with 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.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread py/packages/genkit-google-genai/pyproject.toml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants