Update litellm/llms/custom_httpx/http_handler.py

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
This commit is contained in:
hliu-roblox 2026-03-10 15:33:48 -07:00 committed by GitHub
parent 3494649b2f
commit c4fc5b1da4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -467,7 +467,7 @@ class AsyncHTTPHandler:
response.raise_for_status()
return response
except (httpx.RemoteProtocolError, httpx.ConnectError) as e:
verbose_logger.warning(f"{type(e).__name__} on POST {url}: {e}")
verbose_logger.warning(f"{type(e).__name__} on POST {mask_sensitive_info(url)}: {e}")
# Retry the request with a new session if there is a connection error
new_client = self.create_client(
timeout=timeout, event_hooks=self.event_hooks