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 response api handling
Ishaan Jaffe7e44694cc7f
diff --git a/litellm/proxy/common_request_processing.py b/litellm/proxy/common_request_processing.pyindex 02663f45553..9ffc2666fcc 100644--- a/litellm/proxy/common_request_processing.py+++ b/litellm/proxy/common_request_processing.py@@ -2,7 +2,7 @@ import asyncioimport jsonimport uuidfrom datetime import datetime-from typing import TYPE_CHECKING, Any, Callable, Dict, Literal, Optional, Tuple, Union+from typing import TYPE_CHECKING, Any, Callable, Literal, Optional, Unionimport httpxfrom fastapi import HTTPException, Request, statusdiff --git a/litellm/proxy/response_api_endpoints/endpoints.py b/litellm/proxy/response_api_endpoints/endpoints.pyindex bf96564fa06..31d3c2ca90d 100644--- a/litellm/proxy/response_api_endpoints/endpoints.py+++ b/litellm/proxy/response_api_endpoints/endpoints.py@@ -1,7 +1,5 @@-import backofffrom fastapi import APIRouter, Depends, Request, Response-from litellm._logging import verbose_proxy_loggerfrom litellm.proxy._types import *from litellm.proxy.auth.user_api_key_auth import UserAPIKeyAuth, user_api_key_authfrom litellm.proxy.common_request_processing import ProxyBaseLLMRequestProcessing