From a909d21f199f750722e3efae62a7c5f3e13ad346 Mon Sep 17 00:00:00 2001 From: Yassin Kortam Date: Mon, 8 Jun 2026 15:39:07 -0700 Subject: [PATCH] docs(identity): drop overstated framework-agnostic claim in extractors --- litellm/identity/extractors/api_key.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) 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