refac: error handling
This commit is contained in:
1 parent
73b07df28f
commit
d3547f0f54
2 files changed
+4
-2
No files matched your search
@@ -362,7 +362,9 @@ async def get_all_models_responses(request: Request, user: UserModel) -> list:
|
||||
response if isinstance(response, list) else response.get("data", [])
|
||||
):
|
||||
if prefix_id:
|
||||
model["id"] = f"{prefix_id}.{model['id']}"
|
||||
model["id"] = (
|
||||
f"{prefix_id}.{model.get('id', model.get('name', ''))}"
|
||||
)
|
||||
|
||||
if tags:
|
||||
model["tags"] = tags
|
||||
|
||||
Reference in new issue
Block a user