fix xinference manager bug

This commit is contained in:
liunux4odoo 2024-06-10 10:11:31 +08:00
parent 0abb5a1f9d
commit d71c9b0a27

View File

@ -137,7 +137,7 @@ model_format = None
model_quant = None
if model_type == "LLM":
cur_family = xf_llm.LLMFamilyV1.model_validate(cur_reg)
cur_family = xf_llm.LLMFamilyV1.parse_obj(cur_reg)
cur_spec = None
model_formats = []
for spec in cur_reg["model_specs"]: