Async streaming now supports async with context manager
v7.16.4
1 fixThis release1 fixBug fixesAI-tallied from the release notes
Patch changes
- 44e6b14 Fix async streaming responses from the AI wrappers (OpenAI, Anthropic, Gemini) so they support
async withas well asasync for. Previously, consuming a stream viaasync with(e.g. with pydantic-ai) raisedTypeError: 'async_generator' object does not support the asynchronous context manager protocol. — Thanks @turnipdabeets for your first contribution 🎉!
Fetched June 3, 2026


