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
remove returning key in error message
yuneng-jiangf60e3cfd34f6
diff --git a/litellm/proxy/management_endpoints/key_management_endpoints.py b/litellm/proxy/management_endpoints/key_management_endpoints.pyindex a550af31e71..e1845963701 100644--- a/litellm/proxy/management_endpoints/key_management_endpoints.py+++ b/litellm/proxy/management_endpoints/key_management_endpoints.py@@ -1670,7 +1670,7 @@ async def _get_and_validate_existing_key(if existing_key_row is None:raise ProxyException(- message=f"Key not found. Passed key={token}",+ message=f"Key not found.",type=ProxyErrorTypes.not_found_error,param="key",code=status.HTTP_404_NOT_FOUND,@@ -4947,7 +4947,7 @@ async def block_key()if existing_record is None:raise ProxyException(- message=f"Key not found. Passed key={data.key}",+ message=f"Key not found.",type=ProxyErrorTypes.not_found_error,param="key",code=status.HTTP_404_NOT_FOUND,@@ -5056,7 +5056,7 @@ async def unblock_key()if existing_record is None:raise ProxyException(- message=f"Key not found. Passed key={data.key}",+ message=f"Key not found.",type=ProxyErrorTypes.not_found_error,param="key",code=status.HTTP_404_NOT_FOUND,