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 mypy issues
Sameer Kankute5e8c7f0de121
diff --git a/litellm/proxy/proxy_server.py b/litellm/proxy/proxy_server.pyindex 022626e2992..637893872d9 100644--- a/litellm/proxy/proxy_server.py+++ b/litellm/proxy/proxy_server.py@@ -1864,6 +1864,7 @@ class ProxyConfig:def __init__(self) -> None:self.config: Dict[str, Any] = {}+ self._last_semantic_filter_config: Optional[Dict[str, Any]] = Nonedef is_yaml(self, config_file_path: str) -> bool:if not os.path.isfile(config_file_path):diff --git a/litellm/proxy_auth/credentials.py b/litellm/proxy_auth/credentials.pyindex cddaf1278f9..103b0088d80 100644--- a/litellm/proxy_auth/credentials.py+++ b/litellm/proxy_auth/credentials.py@@ -79,7 +79,7 @@ class AzureADCredential:credential: An azure-identity credential object. If None,DefaultAzureCredential will be used on first token request."""- self._credential = credential+ self._credential: Any = credentialself._initialized = credential is not Nonedef get_token(self, scope: str) -> AccessToken: