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/response_api_endpoints/endpoints.py
Cesar Garciabbec0f76578f
diff --git a/litellm/proxy/response_api_endpoints/endpoints.py b/litellm/proxy/response_api_endpoints/endpoints.pyindex d84b1a27793..aa5298c2cc1 100644--- a/litellm/proxy/response_api_endpoints/endpoints.py+++ b/litellm/proxy/response_api_endpoints/endpoints.py@@ -456,7 +456,7 @@ async def count_response_input_tokens(status_code=400, detail={"error": "model parameter is required"})- if not input_data:+ if input_data is None:raise HTTPException(status_code=400, detail={"error": "input parameter is required"})