fix: openai streaming cancellation using aiohttp

This commit is contained in:
Jun Siang Cheah
2024-06-02 18:48:45 +01:00
parent 4dd51badfe
commit 7f74426a22
2 changed files with 31 additions and 15 deletions

View File

@@ -153,7 +153,7 @@ async def cleanup_response(
await session.close()
async def post_streaming_url(url, payload):
async def post_streaming_url(url: str, payload: str):
r = None
try:
session = aiohttp.ClientSession()