forked from phoenix/litellm-mirror
(fix) caching config
This commit is contained in:
parent
3c30705b76
commit
6aa8b41fb3
1 changed files with 1 additions and 2 deletions
|
@ -167,8 +167,7 @@ async def user_api_key_auth(request: Request):
|
||||||
if api_key == master_key:
|
if api_key == master_key:
|
||||||
return
|
return
|
||||||
if api_key in config_cache:
|
if api_key in config_cache:
|
||||||
model_list = config.get("model_list", [])
|
llm_model_list = config_cache[api_key].get("model_list", [])
|
||||||
llm_model_list = model_list
|
|
||||||
return
|
return
|
||||||
|
|
||||||
if prisma_client:
|
if prisma_client:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue