feat: add UI support for updating model info

This commit is contained in:
Jun Siang Cheah
2024-05-09 23:49:54 +08:00
parent 0dbddebcb0
commit 02a4412dfc
16 changed files with 336 additions and 41 deletions

View File

@@ -230,7 +230,7 @@ async def get_all_models():
def add_custom_info_to_model(model: dict):
model["custom_info"] = next(
(item for item in app.state.MODEL_CONFIG if item["name"] == model["id"]), {}
(item for item in app.state.MODEL_CONFIG if item["id"] == model["id"]), {}
)