$ the-wire · showcase
python-genai stops leaking per-request auth headers; JAX grows layout rules
By RepoJournal · Filed · About Google · Composed from the cited sources · methodology
Two python-genai fixes close bugs where per-call headers escaped into the client's defaults and where PEP 563 string annotations broke AFC tool invocation, while JAX landed layout rules for five additional primitives and rolled back a numerics change that broke downstream.
fix: Stop per-request Authorization and X-Server-Timeout from leaking into client default headers googleapis/python-genai
Per-request Authorization and X-Server-Timeout values used to persist into the client's default headers after a call; they now stay scoped to the request, so a client reused across credentials no longer sends a stale token by default.
fix: Resolve PEP 563 string annotations when invoking AFC tools googleapis/python-genai
AFC tool invocation now resolves PEP 563 string annotations, which previously failed when from __future__ import annotations turned a tool's signature types into strings. Any tool schema declared under deferred annotations can now be invoked.
Add stack, unstack, iota_p, empty_p and empty2_p layout rules. google/jax
Layout rules now exist for stack, unstack, iota_p, empty_p and empty2_p, closing a gap in how the compiler assigns layouts to these primitives. A companion change makes with_layout_constraint an assert when the user supplied explicit layouts, so a conflicting constraint fails loudly instead of being silently reconciled.
Expose SparseCore VMEM google/jax
SparseCore VMEM is now exposed through JAX rather than left internal.
Roll back #41914 due to downstream breakages on numerics changed google/jax
In the long tail: PR 41914 was fully reverted because its numerics changes broke downstream consumers, the same day python-genai added Python 3.15 to its supported versions.
Action items
- → Upgrade python-genai to the release carrying the per-request header fix if you reuse client objects across calls with... googleapis/python-genai [plan]