mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-05 07:37:50 +00:00
docs(auth): note that the Token Authorization scheme comes from Deepgram SDKs
This commit is contained in:
parent
b618285468
commit
784b1fdb01
1 changed files with 1 additions and 1 deletions
|
|
@ -1122,7 +1122,7 @@ def _should_route_jwt_to_oauth2_override(token: str, jwt_handler: JWTHandler) ->
|
|||
def get_bearer_token(
|
||||
api_key: str,
|
||||
) -> str:
|
||||
if api_key.startswith("Token "):
|
||||
if api_key.startswith("Token "): # Deepgram SDKs send their key as `Token <key>`
|
||||
return api_key[len("Token ") :]
|
||||
if api_key.startswith("Bearer "): # ensure Bearer token passed in
|
||||
api_key = api_key.replace("Bearer ", "") # extract the token
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue