rename vision, add layour and tsr recognizer (#70)

* rename vision, add layour and tsr recognizer

* trivial fixing
This commit is contained in:
KevinHuSh
2024-02-22 19:11:37 +08:00
committed by GitHub
parent 5a0f1d2b84
commit d32322c081
17 changed files with 1055 additions and 1039 deletions

View File

@ -94,11 +94,11 @@ def list():
model_type = request.args.get("model_type")
try:
objs = TenantLLMService.query(tenant_id=current_user.id)
mdlnms = set([o.to_dict()["llm_name"] for o in objs if o.api_key])
facts = set([o.to_dict()["llm_factory"] for o in objs if o.api_key])
llms = LLMService.get_all()
llms = [m.to_dict() for m in llms if m.status == StatusEnum.VALID.value]
for m in llms:
m["available"] = m["llm_name"] in mdlnms
m["available"] = m["fid"] in facts
res = {}
for m in llms: