diff --git a/src/i18n/langs/en.json b/src/i18n/langs/en.json index 795e00a77..800d446f7 100644 --- a/src/i18n/langs/en.json +++ b/src/i18n/langs/en.json @@ -1757,6 +1757,7 @@ "LDAPServerInfo": "LDAP Server", "LDAPUser": "LDAP User", "ChatAI": "Chat ai", + "Example": "Example: {example}", "InsecureCommandAlert": "Insecure command alert", "helpText": { "TempPassword": "For a while, there is a period of 300 seconds, failure immediately after use", diff --git a/src/i18n/langs/ja.json b/src/i18n/langs/ja.json index f420531eb..ebc1333ff 100644 --- a/src/i18n/langs/ja.json +++ b/src/i18n/langs/ja.json @@ -1763,6 +1763,7 @@ "LDAPServerInfo": "LDAPサーバー", "LDAPUser": "LDAPユーザー", "ChatAI": "チャットAI", + "Example": "例: {example}", "helpText": { "TempPassword": "一時パスワードの有効期間は300秒で、使用後すぐに失効します", "ApiKeyList": "Api keyを使用してリクエストヘッダに署名します。リクエストのヘッダごとに異なります。使用ドキュメントを参照してください", diff --git a/src/i18n/langs/zh.json b/src/i18n/langs/zh.json index 9cf90c0dc..957d0fadf 100644 --- a/src/i18n/langs/zh.json +++ b/src/i18n/langs/zh.json @@ -1752,6 +1752,7 @@ "LDAPServerInfo": "LDAP 服务器", "LDAPUser": "LDAP 用户", "ChatAI": "智能问答", + "Example": "例: {example}", "helpText": { "TempPassword": "临时密码有效期为 300 秒,使用后立刻失效", "ApiKeyList": "使用 Api key 签名请求头进行认证,每个请求的头部是不一样的, 相对于 Token 方式,更加安全,请查阅文档使用;
为降低泄露风险,Secret 仅在生成时可以查看, 每个用户最多支持创建 10 个", diff --git a/src/views/settings/Feature/Chat.vue b/src/views/settings/Feature/Chat.vue index e746888fa..6f3638dcc 100644 --- a/src/views/settings/Feature/Chat.vue +++ b/src/views/settings/Feature/Chat.vue @@ -51,6 +51,22 @@ export default { ] ] ], + fieldsMeta: { + GPT_BASE_URL: { + el: { + autocomplete: 'new-password' + }, + helpText: this.$t('setting.Example', { example: 'https://api.openai.com/v1' }) + }, + GPT_API_KEY: { + el: { + autocomplete: 'new-password' + } + }, + GPT_PROXY: { + helpText: this.$t('setting.Example', { example: 'http://ip:port' }) + } + }, submitMethod() { return 'patch' }