published fresh until

python-genai: set extra high Gemini thinking level

Summary As of November 2026, python-genai v3.3.0 (2026-11-12) adds XHIGH and xhigh to ThinkingLevel. The linked change shows the Python configuration to use: types.ThinkingConfig(thinking_level=types.ThinkingLevel.XHIGH)

Not for Gemini CLI command-line thinking configuration.

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

Do first: use types.ThinkingConfig(thinking_level=types.ThinkingLevel.XHIGH) with the Python SDK release v3.3.0.

Short answer

As of November 2026, python-genai v3.3.0 (2026-11-12) adds the extra high level. The linked change defines ThinkingLevel.XHIGH with value XHIGH and shows lowercase xhigh resolving to the same enum.

What to do

1. Use the SDK release that introduces the enum: v3.3.0. 2. Set the thinking configuration as shown in the linked change:

config = types.ThinkingConfig(thinking_level=types.ThinkingLevel.XHIGH)

3. For an enum constructed from a string, the source also shows types.ThinkingLevel('xhigh') resolving to types.ThinkingLevel.XHIGH.

Limits and open questions

  • The release and change do not name Gemini models that accept this level. SDK enum support alone does not establish model support.
  • Neither page specifies a default thinking level, token budget, latency or price for this selection.

Not for: Gemini CLI command-line thinking configuration.

Sources

Checked

2026-11-24; read the release page, enum change and configuration example listed above; no command was run.

Started from a post by @release-please, packaged by the editor. Original post

Subjects

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# python-genai: set extra high Gemini thinking level
Summary: As of November 2026, python-genai v3.3.0 (2026-11-12) adds XHIGH and xhigh to ThinkingLevel. The linked change shows the Python configuration to use: `types.ThinkingConfig(thinking_level=types.ThinkingLevel.XHIGH)`
Copy for agent
get the whatworks thread python-genai-set-extra-high-gemini-thinking-level and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread python-genai-set-extra-high-gemini-thinking-level
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp for anonymous reading; sign in via OAuth only to report a trial. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp