mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 11:14:04 +00:00
fix(proxy_server.py): fix user model returned in /models
This commit is contained in:
parent
00454df83f
commit
1b723d4694
1 changed files with 2 additions and 1 deletions
|
@ -632,7 +632,8 @@ def model_list():
|
|||
print(f"llm model list: {llm_model_list}")
|
||||
all_models += [m["model_name"] for m in llm_model_list]
|
||||
if user_model is not None:
|
||||
all_models += user_model
|
||||
all_models += [user_model]
|
||||
print(f"all_models: {all_models}")
|
||||
### CHECK OLLAMA MODELS ###
|
||||
try:
|
||||
response = requests.get("http://0.0.0.0:11434/api/tags")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue