mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-27 03:34:10 +00:00
fix(proxy/utils.py): fix isoformat to string logic
This commit is contained in:
parent
39c699d084
commit
c2813594ea
2 changed files with 13 additions and 10 deletions
|
@ -331,9 +331,10 @@ async def user_api_key_auth(
|
|||
f"LLM Model List pre access group check: {llm_model_list}"
|
||||
)
|
||||
access_groups = []
|
||||
for m in llm_model_list:
|
||||
for group in m.get("model_info", {}).get("access_groups", []):
|
||||
access_groups.append((m["model_name"], group))
|
||||
if llm_model_list is not None:
|
||||
for m in llm_model_list:
|
||||
for group in m.get("model_info", {}).get("access_groups", []):
|
||||
access_groups.append((m["model_name"], group))
|
||||
|
||||
allowed_models = valid_token.models
|
||||
if (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue