Unclosed client session and Unclosed connector warnings after upgrading to v1.37
Those warnings mean the async client's underlying aiohttp session was never closed, and they started appearing for async users after v1.37. Use the async client as a context manager, async with genai.Client(...).aio, so the session closes cleanly at the end of the block. The reporter confirmed the issue was gone in …
Problem outcome: unknown