mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-07 08:26:10 +00:00
fix user_api_key_auth example config
This commit is contained in:
parent
e7a8b5a809
commit
22dfc4dea9
1 changed files with 1 additions and 1 deletions
|
|
@ -7,7 +7,7 @@ from litellm.proxy._types import GenerateKeyRequest, UserAPIKeyAuth
|
|||
|
||||
async def user_api_key_auth(request: Request, api_key: str) -> UserAPIKeyAuth:
|
||||
try:
|
||||
modified_master_key = f"{os.getenv('PROXY_MASTER_KEY')}-1234"
|
||||
modified_master_key = f"{os.getenv('LITELLM_MASTER_KEY')}-1234"
|
||||
if api_key == modified_master_key:
|
||||
return UserAPIKeyAuth(api_key=api_key)
|
||||
raise Exception
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue