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]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
fix(llm_passthrough_endpoints.py): fix raising helpful debug error message
Krrish Dholakiaf859c6ac0f82
diff --git a/litellm/proxy/pass_through_endpoints/llm_passthrough_endpoints.py b/litellm/proxy/pass_through_endpoints/llm_passthrough_endpoints.pyindex c4d96b67f6b..bfdb324b921 100644--- a/litellm/proxy/pass_through_endpoints/llm_passthrough_endpoints.py+++ b/litellm/proxy/pass_through_endpoints/llm_passthrough_endpoints.py@@ -542,13 +542,10 @@ async def vertex_proxy_route(user_api_key_dict,stream=is_streaming_request, # type: ignore)- except Exception as e:+ except ProxyException as e:if headers_passed_through:- raise Exception(- f"No credentials found on proxy for this request. Headers were passed through directly but request failed with error: {str(e)}"- )- else:- raise e+ e.message = f"No credentials found on proxy for project_name={vertex_project} + location={vertex_location}, check `/model/info` for allowed project + region combinations with `use_in_pass_through: true`. Headers were passed through directly but request failed with error: {e.message}"+ raise ereturn received_value