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
Replace deprecated Pydantic Config class with model_config BerriAI/litellm#6902 (#6903) (#7300)
Ishaan Jaffbcf2420e6da6
diff --git a/litellm/proxy/_types.py b/litellm/proxy/_types.pyindex 0fa7b7fc036..2c2fee5dbc2 100644--- a/litellm/proxy/_types.py+++ b/litellm/proxy/_types.py@@ -1431,6 +1431,8 @@ class UserAPIKeyAuth(user_tpm_limit: Optional[int] = Noneuser_rpm_limit: Optional[int] = None+ model_config = ConfigDict(arbitrary_types_allowed=True)+@model_validator(mode="before")@classmethoddef check_api_key(cls, values):@@ -1442,9 +1444,6 @@ class UserAPIKeyAuth(values.update({"api_key": hash_token(values.get("api_key"))})return values- class Config:- arbitrary_types_allowed = True-class UserInfoResponse(LiteLLMPydanticObjectBase):user_id: Optional[str]