Skip to content

fix: address several open SDK bugs (#2937, #2938, #3007, #2991, #2995) - #1

Merged
adri22235 merged 2 commits into
mainfrom
claude/python-genai-issues-d5gnhj
Oct 2, 2026
Merged

adri22235 merged 2 commits into
mainfrom
claude/python-genai-issues-d5gnhj

Conversation

@adri22235

Copy link
Copy Markdown
Owner

Fixes the open upstream bugs in googleapis/python-genai that can be fixed in the SDK. The remaining open bugs (googleapis#3003, googleapis#2974, googleapis#2936, googleapis#2935, googleapis#2927, googleapis#2926 and googleapis#2925) are server-side, model-behavior or API-docs issues.

Changes

Testing

🤖 Generated with Claude Code

https://claude.ai/code/session_01R97bRW4GzCnhFEm2VhymSq


Generated by Claude Code

- types: add FinishReason.MALFORMED_RESPONSE, which the API returns
  (googleapis#2937).
- _api_client: use `await asyncio.sleep` instead of `time.sleep` in the
  httpx branch of the async upload retry, so the backoff no longer blocks
  the event loop (googleapis#2938).
- _transformers: keep annotations next to a `$ref` (e.g. a field-level
  `description`) when inlining the referenced definition in
  response_schema, instead of overwriting them with the shared model's
  (googleapis#3007).
- _common: serialize Pydantic's deferred model build through a lock, since
  `defer_build=True` is not thread safe and concurrent first use could see
  a half-built model (googleapis#2991).
- _api_client: in `__del__`, close each aiohttp session on the event loop
  that created it and keep strong references to the scheduled close tasks
  so they are not destroyed while pending (googleapis#2995).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01R97bRW4GzCnhFEm2VhymSq
@adri22235
adri22235 marked this pull request as ready for review October 2, 2026 16:19
@adri22235
adri22235 merged commit 2cb371c into main Oct 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants