fix: add hunyuan llm error
--bug=1050875 --user=刘瑞斌 【模型管理】-添加腾讯混元大语言模型失败 https://www.tapd.cn/57709429/s/1637470
This commit is contained in:
parent
efa73c827f
commit
91afbcd71a
@ -36,7 +36,7 @@ class TencentLLMModelCredential(BaseForm, BaseModelCredential):
|
|||||||
return False
|
return False
|
||||||
return True
|
return True
|
||||||
|
|
||||||
def is_valid(self, model_type, model_name, model_credential, provider, model_params, raise_exception=False):
|
def is_valid(self, model_type, model_name, model_credential, model_params, provider, raise_exception=False):
|
||||||
if not (self._validate_model_type(model_type, provider, raise_exception) and
|
if not (self._validate_model_type(model_type, provider, raise_exception) and
|
||||||
self._validate_credential_fields(model_credential, raise_exception)):
|
self._validate_credential_fields(model_credential, raise_exception)):
|
||||||
return False
|
return False
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user