mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 18:54:30 +00:00
refactor(proxy_server.py): clean up print statements in proxy server
This commit is contained in:
parent
b46c73a46e
commit
ddea62fdb1
1 changed files with 0 additions and 1 deletions
|
@ -219,7 +219,6 @@ async def user_api_key_auth(request: Request, api_key: str = fastapi.Security(ap
|
||||||
if isinstance(api_key, str):
|
if isinstance(api_key, str):
|
||||||
assert api_key.startswith("Bearer ") # ensure Bearer token passed in
|
assert api_key.startswith("Bearer ") # ensure Bearer token passed in
|
||||||
api_key = api_key.replace("Bearer ", "") # extract the token
|
api_key = api_key.replace("Bearer ", "") # extract the token
|
||||||
print(f"api_key: {api_key}; master_key: {master_key}; user_custom_auth: {user_custom_auth}")
|
|
||||||
### USER-DEFINED AUTH FUNCTION ###
|
### USER-DEFINED AUTH FUNCTION ###
|
||||||
if user_custom_auth:
|
if user_custom_auth:
|
||||||
response = await user_custom_auth(request=request, api_key=api_key)
|
response = await user_custom_auth(request=request, api_key=api_key)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue