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 auth checks
Ishaan Jaffff33ed020cc7
diff --git a/litellm/proxy/auth/auth_checks.py b/litellm/proxy/auth/auth_checks.pyindex dc0ec116f56..7f75272bbd7 100644--- a/litellm/proxy/auth/auth_checks.py+++ b/litellm/proxy/auth/auth_checks.py@@ -11,7 +11,6 @@ Run checks for:import asyncioimport reimport time-import tracebackfrom typing import TYPE_CHECKING, Any, Dict, List, Literal, Optional, castfrom fastapi import Request, status@@ -23,7 +22,6 @@ from litellm.caching.caching import DualCachefrom litellm.caching.dual_cache import LimitedSizeOrderedDictfrom litellm.litellm_core_utils.get_llm_provider_logic import get_llm_providerfrom litellm.proxy._types import (- DB_CONNECTION_ERROR_TYPES,RBAC_ROLES,CallInfo,LiteLLM_EndUserTable,@@ -45,7 +43,6 @@ from litellm.proxy.auth.route_checks import RouteChecksfrom litellm.proxy.route_llm_request import route_requestfrom litellm.proxy.utils import PrismaClient, ProxyLogging, log_db_metricsfrom litellm.router import Router-from litellm.types.services import ServiceTypesfrom .auth_checks_organization import organization_role_based_access_checkdiff --git a/litellm/proxy/auth/user_api_key_auth.py b/litellm/proxy/auth/user_api_key_auth.pyindex 85ee76ff319..b58353bf056 100644--- a/litellm/proxy/auth/user_api_key_auth.py+++ b/litellm/proxy/auth/user_api_key_auth.py@@ -39,7 +39,6 @@ from litellm.proxy.auth.auth_checks import ()from litellm.proxy.auth.auth_exception_handler import UserAPIKeyAuthExceptionHandlerfrom litellm.proxy.auth.auth_utils import (- _get_request_ip_address,get_end_user_id_from_request_body,get_request_route,is_pass_through_provider_route,