Damien Deville

Results 2 issues of Damien Deville

When a global session wasn't set in `openai.aiosession`, we would create a temp `ClientSession` on the fly. Unfortunately, this session wasn't scoped correctly since it was closed upon returning from...

### Describe the bug ```python from aiohttp import web from aiohttp.client_exceptions import ClientResponseError async def handler(_: web.Request) -> web.Response: return web.Response(headers={"Custom": "x" * 10000}) app = web.Application() app.add_routes([web.get("/", handler)]) client...

bug
need pull request
client
regression
reproducer: present