Skip to content

Commit 0e5946a

Browse files
committed
i18n: localize provider embedding/proxy metadata hints
1 parent fd3c337 commit 0e5946a

3 files changed

Lines changed: 10 additions & 2 deletions

File tree

astrbot/core/config/default.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2193,9 +2193,9 @@ class ChatProviderTemplate(TypedDict):
21932193
"type": "string",
21942194
},
21952195
"proxy": {
2196-
"description": "代理地址",
2196+
"description": "provider_group.provider.proxy.description",
21972197
"type": "string",
2198-
"hint": "HTTP/HTTPS 代理地址,格式如 http://127.0.0.1:7890。仅对该提供商的 API 请求生效,不影响 Docker 内网通信。",
2198+
"hint": "provider_group.provider.proxy.hint",
21992199
},
22002200
"model": {
22012201
"description": "模型 ID",

dashboard/src/i18n/locales/en-US/features/config-metadata.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1314,6 +1314,10 @@
13141314
"api_base": {
13151315
"description": "API Base URL"
13161316
},
1317+
"proxy": {
1318+
"description": "Proxy address",
1319+
"hint": "HTTP/HTTPS proxy URL, e.g. http://127.0.0.1:7890. Applies only to this provider's API requests and does not affect Docker internal networking."
1320+
},
13171321
"model": {
13181322
"description": "Model ID",
13191323
"hint": "Model name, e.g., gpt-4o-mini, deepseek-chat."

dashboard/src/i18n/locales/zh-CN/features/config-metadata.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1317,6 +1317,10 @@
13171317
"api_base": {
13181318
"description": "API Base URL"
13191319
},
1320+
"proxy": {
1321+
"description": "代理地址",
1322+
"hint": "HTTP/HTTPS 代理地址,格式如 http://127.0.0.1:7890。仅对该提供商的 API 请求生效,不影响 Docker 内网通信。"
1323+
},
13201324
"model": {
13211325
"description": "模型 ID",
13221326
"hint": "模型名称,如 gpt-4o-mini, deepseek-chat。"

0 commit comments

Comments
 (0)