mirror of
https://github.com/open-webui/open-webui
synced 2024-11-21 23:57:51 +00:00
fix: prefix issue
This commit is contained in:
parent
bd1dae2c66
commit
d5c65e36c9
@ -313,7 +313,9 @@ async def get_all_models_responses() -> list:
|
||||
prefix_id = api_config.get("prefix_id", None)
|
||||
|
||||
if prefix_id:
|
||||
for model in response["data"]:
|
||||
for model in (
|
||||
response if isinstance(response, list) else response.get("data", [])
|
||||
):
|
||||
model["id"] = f"{prefix_id}.{model['id']}"
|
||||
|
||||
log.debug(f"get_all_models:responses() {responses}")
|
||||
|
Loading…
Reference in New Issue
Block a user