Skip to content

Commit a70a989

Browse files
committed
fix: Failed to save the Qianfan large model
1 parent 2ca4502 commit a70a989

File tree

1 file changed

+1
-1
lines changed
  • apps/setting/models_provider/impl/wenxin_model_provider/credential

1 file changed

+1
-1
lines changed

apps/setting/models_provider/impl/wenxin_model_provider/credential/llm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def is_valid(self, model_type: str, model_name, model_credential: Dict[str, obje
4545
gettext('{model_type} Model type is not supported').format(model_type=model_type))
4646
model = provider.get_model(model_type, model_name, model_credential, **model_params)
4747
model_info = [model.lower() for model in model.client.models()]
48-
if not model_info.__containsgettext(model_name.lower()):
48+
if not model_info.__contains__(model_name.lower()):
4949
raise AppApiException(ValidCode.valid_error.value,
5050
gettext('{model_name} The model does not support').format(model_name=model_name))
5151
for key in ['api_key', 'secret_key']:

0 commit comments

Comments
 (0)