Skip to content

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]

Fix mypy issues

Sameer Kankute5e8c7f0de121
diff --git a/litellm/proxy/proxy_server.py b/litellm/proxy/proxy_server.py
index 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]] = None
def 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.py
index 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 = credential
self._initialized = credential is not None
def get_token(self, scope: str) -> AccessToken: