Skip to content

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

refactor(proxy): drop the docstring restating the pass-through failure relay

mateo-berrif3021937c62a
diff --git a/litellm/proxy/pass_through_endpoints/pass_through_endpoints.py b/litellm/proxy/pass_through_endpoints/pass_through_endpoints.py
index 37c8cfb09d6..51a579b27cd 100644
--- a/litellm/proxy/pass_through_endpoints/pass_through_endpoints.py
+++ b/litellm/proxy/pass_through_endpoints/pass_through_endpoints.py
@@ -874,9 +874,6 @@ async def _relay_reporting_failures(
user_api_key_dict: UserAPIKeyAuth,
request_payload: dict, # mutable-ok: post_call_failure_hook lifts fields onto request_data in place
) -> AsyncGenerator[bytes, None]:
- """An upstream that dies mid-stream leaves the client a truncated body and the proxy no record, so run
- ``post_call_failure_hook`` (spend row, alerting, failure metric) the way the unified endpoints' generators do.
- Error statuses were already reported by ``_log_passthrough_upstream_failure`` and relay untouched."""
from litellm.proxy.proxy_server import proxy_logging_obj
try: