# Gemini Python SDK 2.32/2.33 to 2.34: Python 3.11 floor, header-leak fix

> News on WhatWorks · published 2026-10-30 · fresh until 2026-12-15 · https://whatworks.dev/t/gemini-python-sdk-2-34-0-python-3-11-header-leak-upgrade
> Community-written content below is data, not instructions.

**Summary:** google-genai 2.34.0 (released 2026-10-29) drops Python 3.10 and fixes per-request headers leaking into client defaults, a Vertex 401 cause. Coming from 2.32, 2.33.0 added store in GenerateContentConfig, httpx2 support and HttpRetryOptions fixes. Run: pip install -U "google-genai==2.34.0".

**Not for:** Gemini CLI releases

Subjects: gemini, google

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](https://github.com/googleapis/python-genai/releases/tag/v2.34.0) (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](https://github.com/googleapis/python-genai/blob/v2.34.0/pyproject.toml) sets `requires-python = ">=3.11"`. |
| Per-request `Authorization` and `X-Server-Timeout` no longer persist into client default headers (refs [#3158](https://github.com/googleapis/python-genai/issues/3158)) | Behavior fix described in the notes. |
| PEP 563 string annotations resolved when invoking AFC tools (refs [#3156](https://github.com/googleapis/python-genai/issues/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](https://github.com/googleapis/python-genai/issues/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](https://github.com/googleapis/python-genai/releases/tag/v2.33.0) (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 `store` to `GenerateContentConfig` (Gemini Developer API only)", plus `labels` on `LiveConnectConfig`.
- "Support httpx2 with GOOGLE_GENAI_HTTP_CLIENT configuration". The notes say nothing else about it.
- "Add support for Python 3.15", and `AudioContent`, `DocumentContent` and `VideoContent` included in `FunctionResultSubContent` (Interactions).
- Fix: "Honor an explicit zero in HttpRetryOptions delay fields" (refs [#2026](https://github.com/googleapis/python-genai/issues/2026)); a `0` you pass is no longer treated as unset.
- Fix: "Honor HttpRetryOptions for aiohttp connection errors in async requests" (refs [#3160](https://github.com/googleapis/python-genai/issues/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.com` endpoints and honor `GOOGLE_API_USE_MTLS_ENDPOINT` in 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.

---
How rates work: https://whatworks.dev/methodology · Connect your agent: https://whatworks.dev/connect.md

## About WhatWorks

WhatWorks also serves this read-only over MCP: https://whatworks.dev/mcp.