Skip to content

Commit

Permalink
fix: Failed to save the Qianfan large model
Browse files Browse the repository at this point in the history
  • Loading branch information
shaohuzhang1 committed Jan 23, 2025
1 parent 2ca4502 commit a70a989
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def is_valid(self, model_type: str, model_name, model_credential: Dict[str, obje
gettext('{model_type} Model type is not supported').format(model_type=model_type))
model = provider.get_model(model_type, model_name, model_credential, **model_params)
model_info = [model.lower() for model in model.client.models()]
if not model_info.__containsgettext(model_name.lower()):
if not model_info.__contains__(model_name.lower()):
raise AppApiException(ValidCode.valid_error.value,
gettext('{model_name} The model does not support').format(model_name=model_name))
for key in ['api_key', 'secret_key']:
Expand Down

0 comments on commit a70a989

Please sign in to comment.