Skip to content

Commit c83462e

Browse files
committed
fix: make API URL and keys required fields in llm.py
1 parent 082cfaa commit c83462e

File tree

1 file changed

+3
-3
lines changed
  • apps/models_provider/impl/wenxin_model_provider/credential

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,11 +106,11 @@ def build_model(self, model_info: Dict[str, object]):
106106
method='', )
107107

108108
# v2版本字段
109-
api_base = forms.TextInputField("API Base", required=False, relation_show_field_dict={"api_version": ["v2"]})
109+
api_base = forms.TextInputField("API URL", required=True, relation_show_field_dict={"api_version": ["v2"]})
110110

111111
# v1版本字段
112-
api_key = forms.PasswordInputField('API Key', required=False)
113-
secret_key = forms.PasswordInputField("Secret Key", required=False,
112+
api_key = forms.PasswordInputField('API Key', required=True)
113+
secret_key = forms.PasswordInputField("Secret Key", required=True,
114114
relation_show_field_dict={"api_version": ["v1"]})
115115

116116
def get_model_params_setting_form(self, model_name):

0 commit comments

Comments
 (0)