mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-12 23:01:41 +00:00
fix(proxy): skip post_call_failure_hook for 499 client disconnect
This commit is contained in:
parent
c5f48ccfab
commit
65bed54f28
1 changed files with 1 additions and 0 deletions
|
|
@ -1622,6 +1622,7 @@ class ProxyBaseLLMRequestProcessing:
|
|||
"""Raises ProxyException (OpenAI API compatible) if an exception is raised"""
|
||||
if isinstance(e, HTTPException) and e.status_code == 499:
|
||||
verbose_proxy_logger.info("Client disconnected the request (499)")
|
||||
raise e
|
||||
else:
|
||||
verbose_proxy_logger.exception(
|
||||
f"litellm.proxy.proxy_server._handle_llm_api_exception(): Exception occured - {str(e)}"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue