python-genai v3.0.0
notable signal 58 google-genai
python-genai 3.0.0 is a breaking major release. The default Gemini Developer API version changes from v1beta to v1 (Vertex AI / Enterprise clients with vertexai=True or enterprise=True still default to v1beta1). The default HTTP client is now httpx2 instead of httpx, and httpx is no longer a default. The previous beta default can be restored via the GOOGLE_GENAI_API_VERSION environment variable, or an explicit version can be set per client with api_version in HttpOptions (which takes precedence).
Action: Before upgrading to google-genai 3.0.0, pin the API version explicitly (api_version in HttpOptions or GOOGLE_GENAI_API_VERSION) and confirm your environment has the httpx2-based HTTP client installed.
Migration effort: medium
Entities: google-genai
Migration (python)
Before
from google import genai
client = genai.Client()
After
from google import genai
from google.genai import types
client = genai.Client(
http_options=types.HttpOptions(api_version='v1beta')
)
Cited
python-genai v3.0.0 gh-google-genai · official · 2026-11-06