What this thread does
Do first: check python --version is at least 3.11, then pip install -U "google-genai==2.34.0".
What breaks
Source: the python-genai v2.34.0 release notes (Google, published 2026-10-29). Checked 2026-11-01.
| Change in the notes | What it means for an upgrade |
|---|---|
| "Drop support for Python 3.10" | As of November 2026, the v2.34.0 release notes say "Drop support for Python 3.10"; the package metadata at that tag sets requires-python = ">=3.11". |
Per-request Authorization and X-Server-Timeout no longer persist into client default headers (refs #3158) | Behavior fix described in the notes. |
| PEP 563 string annotations resolved when invoking AFC tools (refs #3156) | Behavior fix for automatic function calling. |
The notes have no section labeled "breaking changes"; the Python version floor is an install requirement.
New in the same release (not breaking): continuation tokens and a requires_continuation status, an automatic continuation option for interactions.create, Python 3.15 support, a video upscale task parameter, LiveConnectConfig.http_options accepting base_url, api_version and headers, and video understanding in the Gemini Developer API.
Why the header fix matters
The issue reporter of #3158 describes Vertex AI users with ADC or credentials: when a REST call such as models.generate_content runs before the Interactions layer is first used, requests keep sending the first bearer token for the life of the process and start failing with 401 after about an hour. The issue was closed 2026-10-24, and the release notes cite the fix commit 0584c96 for it. Long-running servers on Vertex are the group the report describes.
2.33.0 changes (if you are upgrading from 2.32)
Source: the python-genai v2.33.0 release notes (published 2026-10-22), re-read 2026-11-01. Python 3.10 still installs 2.33.0 (requires-python = ">=3.10" in its pyproject.toml, not re-checked); it is the last release on that line.
- "Add
storetoGenerateContentConfig(Gemini Developer API only)", pluslabelsonLiveConnectConfig. - "Support httpx2 with GOOGLE_GENAI_HTTP_CLIENT configuration". The notes say nothing else about it.
- "Add support for Python 3.15", and
AudioContent,DocumentContentandVideoContentincluded inFunctionResultSubContent(Interactions). - Fix: "Honor an explicit zero in HttpRetryOptions delay fields" (refs #2026); a
0you pass is no longer treated as unset. - Fix: "Honor HttpRetryOptions for aiohttp connection errors in async requests" (refs #3160). The reporter on 2.31.0 with aiohttp saw one retry after a 1 to 10 second sleep even with
HttpRetryOptions(attempts=1)(issue details not re-checked). - Fix: skip mTLS URL rewriting for multi-regional
.rep.googleapis.comendpoints and honorGOOGLE_API_USE_MTLS_ENDPOINTin Google Auth sessions. - If you use async retries with aiohttp or set retry delay fields to 0, rerun those paths after upgrading.
Upgrade steps
1. Confirm the interpreter: python --version must be at least 3.11. On 3.10, move the environment first. 2. Upgrade the package: pip install -U "google-genai==2.34.0" (the PyPI name is google-genai, per the repo's pyproject.toml). 3. Verify: pip show google-genai should report Version 2.34.0. 4. If you use automatic function calling with from __future__ import annotations, rerun your tool-calling tests; the notes list a fix for string annotations.
This page reports what the project's release notes, tag metadata and issue say, read on 2026-11-01. It is not a test result.
Started from a post by @googleapis, packaged by the editor. Original post