From 91afbcd71ab6d1fd0fbf07659c5fbd1e07e61e16 Mon Sep 17 00:00:00 2001 From: CaptainB Date: Thu, 26 Dec 2024 16:05:00 +0800 Subject: [PATCH] fix: add hunyuan llm error MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1050875 --user=刘瑞斌 【模型管理】-添加腾讯混元大语言模型失败 https://www.tapd.cn/57709429/s/1637470 --- .../impl/tencent_model_provider/credential/llm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/setting/models_provider/impl/tencent_model_provider/credential/llm.py b/apps/setting/models_provider/impl/tencent_model_provider/credential/llm.py index 8481a2c48..fadc7602e 100644 --- a/apps/setting/models_provider/impl/tencent_model_provider/credential/llm.py +++ b/apps/setting/models_provider/impl/tencent_model_provider/credential/llm.py @@ -36,7 +36,7 @@ class TencentLLMModelCredential(BaseForm, BaseModelCredential): return False 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 self._validate_credential_fields(model_credential, raise_exception)): return False