From 22dfc4dea998b1327e187b60aaf64f4d3612cb2b Mon Sep 17 00:00:00 2001 From: Ishaan Jaff Date: Wed, 26 Mar 2025 08:36:11 -0700 Subject: [PATCH] fix user_api_key_auth example config --- litellm/proxy/example_config_yaml/custom_auth.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litellm/proxy/example_config_yaml/custom_auth.py b/litellm/proxy/example_config_yaml/custom_auth.py index 7d797623c5..e59db22719 100644 --- a/litellm/proxy/example_config_yaml/custom_auth.py +++ b/litellm/proxy/example_config_yaml/custom_auth.py @@ -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