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
Update litellm/proxy/proxy_server.py
ishaan-berri4aed2c9e3b63
diff --git a/litellm/proxy/proxy_server.py b/litellm/proxy/proxy_server.pyindex ef4807275e4..8cba027ae1b 100644--- a/litellm/proxy/proxy_server.py+++ b/litellm/proxy/proxy_server.py@@ -9164,6 +9164,8 @@ async def token_counter(request: TokenCountRequest, call_endpoint: bool = False)contents=contents,deployment=deployment,request_model=request.model,+ tools=tools,+ system=system,)except httpx.HTTPStatusError as e:error_message = getattr(e, "message", None) or str(e)