From be7416386fdb0c2f32cc9fe9e2c2b4cd613bb197 Mon Sep 17 00:00:00 2001 From: Wangnov Date: Tue, 9 Sep 2025 16:26:48 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=AE=8C=E6=88=90AccountForm=E7=BB=84?= =?UTF-8?q?=E4=BB=B6=E5=89=A9=E4=BD=99=E6=A8=A1=E5=9D=97=E5=9B=BD=E9=99=85?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/accounts/AccountForm.vue | 163 +++++++++--------- web/admin-spa/src/i18n/locales/en.js | 151 +++++++++++++++- web/admin-spa/src/i18n/locales/zh-cn.js | 151 +++++++++++++++- web/admin-spa/src/i18n/locales/zh-tw.js | 151 +++++++++++++++- 4 files changed, 530 insertions(+), 86 deletions(-) diff --git a/web/admin-spa/src/components/accounts/AccountForm.vue b/web/admin-spa/src/components/accounts/AccountForm.vue index 49c5cc83..d4b32c37 100644 --- a/web/admin-spa/src/components/accounts/AccountForm.vue +++ b/web/admin-spa/src/components/accounts/AccountForm.vue @@ -23,7 +23,7 @@ - +
- +
@@ -237,14 +237,14 @@

- +
- +
@@ -269,7 +269,7 @@ {{ group.name }} ({{ group.memberCount || 0 }} {{ t('accountForm.memberCount') }}) - +
- +
{{ t('accountForm.projectIdOptional') }}
-

Google Cloud/Workspace 账号需要提供项目 ID

+

{{ t('accountForm.geminiProjectIdRequired') }}

- 某些 Google 账号(特别是绑定了 Google Cloud 的账号)会被识别为 Workspace - 账号,需要提供额外的项目 ID。 + {{ t('accountForm.geminiProjectIdDetail') }}

- 提示:如果您的账号是普通个人账号(未绑定 Google - Cloud),请留空此字段。 + {{ t('accountForm.geminiPersonalAccountTip') }}

- +
@@ -444,12 +441,12 @@
-

Bedrock 模型配置说明:

+

{{ t('accountForm.bedrockModelConfigDesc') }}

    -
  • 支持 Inference Profile ID(推荐)
  • -
  • 支持 Application Inference Profile ARN
  • -
  • 常用模型:us.anthropic.claude-sonnet-4-20250514-v1:0
  • -
  • 留空将使用系统配置的默认模型
  • +
  • {{ t('accountForm.bedrockSupportsInferenceProfile') }}
  • +
  • {{ t('accountForm.bedrockSupportsARN') }}
  • +
  • {{ t('accountForm.bedrockCommonModel') }}
  • +
  • {{ t('accountForm.bedrockEmptyUsesDefault') }}
@@ -472,7 +469,7 @@
- +

- 选择此部署支持的模型类型 + {{ t('accountForm.azureModelSelectionDesc') }}

@@ -587,7 +584,7 @@
{{ t('accountForm.rateLimitMechanism') }}

- 启用后,当账号返回429错误时将暂停调度一段时间 + {{ t('accountForm.rateLimitDescription2') }}

{{ t('accountForm.rateLimitDurationMinutes') }}

- 账号被限流后暂停调度的时间(分钟) + {{ t('accountForm.rateLimitPauseDescription') }}

- +
- +

- 设置每日使用额度,0 表示不限制 + {{ t('accountForm.dailyQuotaDescription') }}

- 每日自动重置额度的时间 + {{ t('accountForm.quotaResetTimeDescription') }}

{{ t('accountForm.modelMappingTableOptional') }}

- 留空表示支持所有模型且不修改请求。配置映射后,左侧模型会被识别为支持的模型,右侧是实际发送的模型。 + {{ t('accountForm.modelMappingDescription') }}

- +
- 添加模型映射 + {{ t('accountForm.addModelMapping') }} @@ -804,7 +801,7 @@
{{ t('accountForm.rateLimitMechanism') }}

- 启用后,当账号返回429错误时将暂停调度一段时间 + {{ t('accountForm.rateLimitDescription2') }}

{{ t('accountForm.rateLimitDurationMinutes') }}

- 账号被限流后暂停调度的时间(分钟) + {{ t('accountForm.rateLimitPauseDescription') }}

- +
{{ t('accountForm.subscriptionType') }}