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: fix placement
Krrish Dholakia83facb761f4c
diff --git a/litellm/proxy/_types.py b/litellm/proxy/_types.pyindex d39f12f05e2..4de2fd1299d 100644--- a/litellm/proxy/_types.py+++ b/litellm/proxy/_types.py@@ -731,12 +731,7 @@ class GenerateRequestBase(LiteLLMPydanticObjectBase):metadata: Optional[dict] = {}tpm_limit: Optional[int] = Nonerpm_limit: Optional[int] = None- rpm_limit_type: Optional[- Literal["guaranteed_throughput", "best_effort_throughput"]- ] = None # raise an error if 'guaranteed_throughput' is set and we're overallocating rpm- tpm_limit_type: Optional[- Literal["guaranteed_throughput", "best_effort_throughput"]- ] = None # raise an error if 'guaranteed_throughput' is set and we're overallocating tpm+budget_duration: Optional[str] = Noneallowed_cache_controls: Optional[list] = []config: Optional[dict] = {}@@ -761,6 +756,12 @@ class KeyRequestBase(GenerateRequestBase):tags: Optional[List[str]] = Noneenforced_params: Optional[List[str]] = Noneallowed_routes: Optional[list] = []+ rpm_limit_type: Optional[+ Literal["guaranteed_throughput", "best_effort_throughput"]+ ] = None # raise an error if 'guaranteed_throughput' is set and we're overallocating rpm+ tpm_limit_type: Optional[+ Literal["guaranteed_throughput", "best_effort_throughput"]+ ] = None # raise an error if 'guaranteed_throughput' is set and we're overallocating tpmclass LiteLLMKeyType(str, enum.Enum):