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

@ -75,7 +75,7 @@ class TenantLLMService(CommonService):
model_config = cls.get_api_key(tenant_id, mdlnm)
if not model_config:
raise LookupError("Model({}) not found".format(mdlnm))
raise LookupError("Model({}) not authorized".format(mdlnm))
model_config = model_config.to_dict()
if llm_type == LLMType.EMBEDDING.value:
if model_config["llm_factory"] not in EmbeddingModel: