fix: 修复xinference模型创建失败的缺陷
https://github.com/1Panel-dev/MaxKB/issues/1389
This commit is contained in:
parent
735b7c7a22
commit
8c4fb7968d
@ -407,4 +407,4 @@ class XinferenceModelProvider(IModelProvider):
|
|||||||
def get_model_info_by_name(model_list, model_name):
|
def get_model_info_by_name(model_list, model_name):
|
||||||
if model_list is None:
|
if model_list is None:
|
||||||
return []
|
return []
|
||||||
return [model for model in model_list if model.get('model_name') == model_name]
|
return [model for model in model_list if model.get('model_name') == model_name or model.get('id') == model_name]
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user