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 http parsing utils (#7753)
Ishaan Jaffc8ac61f117f9
diff --git a/litellm/proxy/common_utils/http_parsing_utils.py b/litellm/proxy/common_utils/http_parsing_utils.pyindex 83eb9f74fd9..07bd037fe66 100644--- a/litellm/proxy/common_utils/http_parsing_utils.py+++ b/litellm/proxy/common_utils/http_parsing_utils.py@@ -41,7 +41,8 @@ async def _read_request_body(request: Optional[Request]) -> Dict:# Return empty dict if body is empty or Noneif not body:parsed_body = {}- parsed_body = orjson.loads(body)+ else:+ parsed_body = orjson.loads(body)# Cache the parsed result_safe_set_request_parsed_body(request=request, parsed_body=parsed_body)