mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-11 22:51:28 +00:00
Update litellm/proxy/common_request_processing.py
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
This commit is contained in:
parent
d2c0585f7c
commit
b8128efd1e
1 changed files with 1 additions and 2 deletions
|
|
@ -560,8 +560,7 @@ async def _check_request_disconnection(
|
|||
start_time = time.time()
|
||||
while time.time() - start_time < DEFAULT_CLIENT_DISCONNECT_CHECK_TIMEOUT_SECONDS:
|
||||
await asyncio.sleep(1)
|
||||
message = await request.receive()
|
||||
if message.get("type") == "http.disconnect":
|
||||
if await request.is_disconnected():
|
||||
# cancel the LLM API Call task if any passed - this is passed from individual providers
|
||||
# Example OpenAI, Azure, VertexAI etc
|
||||
llm_api_call_task.cancel()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue