This commit is contained in:
Timothy Jaeryang Baek
2026-04-12 17:22:06 -05:00
parent 4498e6faf2
commit c47dd7b771
7 changed files with 182 additions and 36 deletions
+4 -2
View File
@@ -905,9 +905,11 @@ async def cleanup_response(
session: Optional[aiohttp.ClientSession],
):
if response:
response.close()
if not response.closed:
await response.close()
if session:
await session.close()
if not session.closed:
await session.close()
async def stream_wrapper(response, session, content_handler=None):