mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2026-04-05 14:45:28 +00:00
Fix the /v1/models output format (closes #7089)
This commit is contained in:
parent
9c6913ad61
commit
dcdc42fa06
2 changed files with 2 additions and 2 deletions
|
|
@ -180,7 +180,7 @@ async def handle_models(request: Request):
|
|||
is_list = request.url.path.split('?')[0].split('#')[0] == '/v1/models'
|
||||
|
||||
if is_list:
|
||||
response = OAImodels.list_models()
|
||||
response = OAImodels.list_models()['model_names']
|
||||
else:
|
||||
model_name = path[len('/v1/models/'):]
|
||||
response = OAImodels.model_info_dict(model_name)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue