diff --git a/litellm/identity/extractors/api_key.py b/litellm/identity/extractors/api_key.py index e84e4e01e38..2602e394c38 100644 --- a/litellm/identity/extractors/api_key.py +++ b/litellm/identity/extractors/api_key.py @@ -25,11 +25,8 @@ def hash_principal_token(api_key: str) -> str: def extract_api_key_principal(api_key: Optional[str]) -> Optional[ApiKeyPrincipal]: """Build an ``ApiKeyPrincipal`` from a raw API key string. - Returns ``None`` when no key is supplied. Callers that need to pull - the key out of a FastAPI request should call ``get_api_key`` from - ``litellm.proxy.auth.user_api_key_auth`` first; this extractor stays - framework-agnostic on purpose so it can be reused by non-FastAPI - entrypoints (CLI, MCP, background jobs). + Returns ``None`` when no key is supplied. Callers that need to pull the + key out of a request should call ``get_api_key`` first. """ if not api_key: return None