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
chore: remove unused imports (get_key_object, _cache_key_object)
Cursor Agent5e7645a99b6c
diff --git a/litellm/proxy/management_endpoints/key_management_endpoints.py b/litellm/proxy/management_endpoints/key_management_endpoints.pyindex 6dd0d4137be..55def0008b7 100644--- a/litellm/proxy/management_endpoints/key_management_endpoints.py+++ b/litellm/proxy/management_endpoints/key_management_endpoints.py@@ -41,10 +41,8 @@ from litellm.proxy._experimental.mcp_server.db import (from litellm.proxy._types import *from litellm.proxy._types import LiteLLM_VerificationTokenfrom litellm.proxy.auth.auth_checks import (- _cache_key_object,_delete_cache_key_object,can_team_access_model,- get_key_object,get_org_object,get_project_object,get_team_object,diff --git a/tests/test_litellm/proxy/management_endpoints/test_key_management_endpoints.py b/tests/test_litellm/proxy/management_endpoints/test_key_management_endpoints.pyindex 49be6ce6bb5..664a08989e9 100644--- a/tests/test_litellm/proxy/management_endpoints/test_key_management_endpoints.py+++ b/tests/test_litellm/proxy/management_endpoints/test_key_management_endpoints.py@@ -1314,10 +1314,6 @@ async def test_unblock_key_supports_both_sk_and_hashed_tokens(monkeypatch):return_value=mock_key_record)- # Mock get_key_object and _cache_key_object functions- mock_key_object = MagicMock()- mock_key_object.blocked = True # Initially blocked-# Mock hash_token functiondef mock_hash_token(token):if token == "sk-test123456789":@@ -1388,7 +1384,6 @@ async def test_unblock_key_supports_both_sk_and_hashed_tokens(monkeypatch):)assert result == mock_key_record- assert mock_key_object.blocked == False # Should be updated to unblocked@pytest.mark.asyncio