Skip to content

Commit b189b8d

Browse files
committed
refactor: API URL
1 parent 9e50c88 commit b189b8d

File tree

35 files changed

+35
-35
lines changed

35 files changed

+35
-35
lines changed

apps/locales/en_US/LC_MESSAGES/django.po

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4149,7 +4149,7 @@ msgstr ""
41494149

41504150
#: .\apps\setting\models_provider\impl\anthropic_model_provider\credential\image.py:35
41514151
#: .\apps\setting\models_provider\impl\anthropic_model_provider\credential\llm.py:71
4152-
msgid "API Url"
4152+
msgid "API URL"
41534153
msgstr ""
41544154

41554155
#: .\apps\setting\models_provider\impl\anthropic_model_provider\credential\image.py:36

apps/locales/zh_CN/LC_MESSAGES/django.po

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4165,7 +4165,7 @@ msgstr "[0.5,2],默认为1,通常一位小数就足够了"
41654165

41664166
#: .\apps\setting\models_provider\impl\anthropic_model_provider\credential\image.py:35
41674167
#: .\apps\setting\models_provider\impl\anthropic_model_provider\credential\llm.py:71
4168-
msgid "API Url"
4168+
msgid "API URL"
41694169
msgstr ""
41704170

41714171
#: .\apps\setting\models_provider\impl\anthropic_model_provider\credential\image.py:36

apps/locales/zh_Hant/LC_MESSAGES/django.po

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4166,7 +4166,7 @@ msgstr "[0.5,2],默認爲1,通常一位小數就足夠了"
41664166

41674167
#: .\apps\setting\models_provider\impl\anthropic_model_provider\credential\image.py:35
41684168
#: .\apps\setting\models_provider\impl\anthropic_model_provider\credential\llm.py:71
4169-
msgid "API Url"
4169+
msgid "API URL"
41704170
msgstr ""
41714171

41724172
#: .\apps\setting\models_provider\impl\anthropic_model_provider\credential\image.py:36

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def is_valid(self, model_type: str, model_name, model_credential: Dict[str, obje
6161
def encryption_dict(self, model: Dict[str, object]):
6262
return {**model, 'api_key': super().encryption(model.get('api_key', ''))}
6363

64-
api_base = forms.TextInputField('API Url', required=True)
64+
api_base = forms.TextInputField('API URL', required=True)
6565
api_key = forms.PasswordInputField('API Key', required=True)
6666

6767
def get_model_params_setting_form(self, model_name):

apps/setting/models_provider/impl/anthropic_model_provider/credential/image.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class AnthropicImageModelParams(BaseForm):
3232

3333

3434
class AnthropicImageModelCredential(BaseForm, BaseModelCredential):
35-
api_base = forms.TextInputField(_('API Url'), required=True)
35+
api_base = forms.TextInputField(_('API URL'), required=True)
3636
api_key = forms.PasswordInputField(_('API Key'), required=True)
3737

3838
def is_valid(self, model_type: str, model_name, model_credential: Dict[str, object], model_params, provider,

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def is_valid(self, model_type: str, model_name, model_credential: Dict[str, obje
6868
def encryption_dict(self, model: Dict[str, object]):
6969
return {**model, 'api_key': super().encryption(model.get('api_key', ''))}
7070

71-
api_base = forms.TextInputField(_('API Url'), required=True)
71+
api_base = forms.TextInputField(_('API URL'), required=True)
7272
api_key = forms.PasswordInputField(_('API Key'), required=True)
7373

7474
def get_model_params_setting_form(self, model_name):

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def is_valid(self, model_type: str, model_name, model_credential: Dict[str, obje
6363
def encryption_dict(self, model: Dict[str, object]):
6464
return {**model, 'api_key': super().encryption(model.get('api_key', ''))}
6565

66-
api_base = forms.TextInputField('API Url', required=True)
66+
api_base = forms.TextInputField('API URL', required=True)
6767
api_key = forms.PasswordInputField('API Key', required=True)
6868

6969
def get_model_params_setting_form(self, model_name):

apps/setting/models_provider/impl/ollama_model_provider/credential/embedding.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,4 @@ def build_model(self, model_info: Dict[str, object]):
4646
raise AppApiException(500, __('{key} is required').format(key=key))
4747
return self
4848

49-
api_base = forms.TextInputField('API Url', required=True)
49+
api_base = forms.TextInputField('API URL', required=True)

apps/setting/models_provider/impl/ollama_model_provider/credential/image.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class OllamaImageModelParams(BaseForm):
2828

2929

3030
class OllamaImageModelCredential(BaseForm, BaseModelCredential):
31-
api_base = forms.TextInputField('API Url', required=True)
31+
api_base = forms.TextInputField('API URL', required=True)
3232
api_key = forms.PasswordInputField('API Key', required=True)
3333

3434
def is_valid(self, model_type: str, model_name, model_credential: Dict[str, object], model_params, provider,

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def build_model(self, model_info: Dict[str, object]):
6363
self.api_key = model_info.get('api_key')
6464
return self
6565

66-
api_base = forms.TextInputField('API Url', required=True)
66+
api_base = forms.TextInputField('API URL', required=True)
6767
api_key = forms.PasswordInputField('API Key', required=True)
6868

6969
def get_model_params_setting_form(self, model_name):

0 commit comments

Comments
 (0)