fix(proxy): skip post_call_failure_hook for 499 client disconnect

This commit is contained in:
CreateRandom 2026-04-16 09:46:03 +02:00
parent c5f48ccfab
commit 65bed54f28

View file

@ -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)}"