mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-13 12:55:19 +00:00
fix
This commit is contained in:
parent
6dbd59c7c6
commit
404875cab9
1 changed files with 4 additions and 1 deletions
|
|
@ -307,7 +307,10 @@ async def get_models(user=Depends(get_verified_user)):
|
|||
for custom_model in custom_models:
|
||||
if custom_model.base_model_id == None:
|
||||
for model in models:
|
||||
if custom_model.id == model["id"]:
|
||||
if (
|
||||
custom_model.id == model["id"]
|
||||
or custom_model.id == model["id"].split(":")[0]
|
||||
):
|
||||
model["name"] = custom_model.name
|
||||
model["info"] = custom_model.model_dump()
|
||||
else:
|
||||
|
|
|
|||
Loading…
Reference in a new issue