mirror of
https://github.com/Wei-Shaw/sub2api.git
synced 2026-12-05 08:05:12 +00:00
fix(i18n): correct the custom error codes warning text
The warning said "Other errors will return 500", but custom error codes only gate normal account-error handling (stop scheduling, rate-limit marking). Request retry and account failover decide independently: on the OpenAI-compatible gateway, unselected 403/5xx still fail over to another account and only exhaust to 502; only some non-failover paths (for example an ordinary 400) are rewritten to a generic 500. Reword zh/en to describe what the setting actually does, including that an empty list applies no filtering. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
42bc7f6cff
commit
2e3c2cf592
2 files changed
+3
-2
No files matched your search
@@ -843,7 +843,7 @@ export default {
|
||||
customErrorCodes: 'Custom Error Codes',
|
||||
customErrorCodesHint: 'Only stop scheduling for selected error codes',
|
||||
customErrorCodesWarning:
|
||||
'Only selected error codes will stop scheduling. Other errors will return 500.',
|
||||
'Custom error codes only filter normal account-error handling (such as stopping scheduling or marking rate limits). They do not decide whether a request is retried or switched to another account. Unselected errors may still trigger a retry or an account switch, and the status returned to the client depends on the gateway path and error-passthrough rules; it is not always 500. An empty list applies no filtering.',
|
||||
customErrorCodes429Warning:
|
||||
'429 already has built-in rate limit handling. Adding it to custom error codes will disable the account instead of temporary rate limiting. Are you sure?',
|
||||
customErrorCodes529Warning:
|
||||
|
||||
@@ -945,7 +945,8 @@ export default {
|
||||
poolModeRetryStatusCodesHint: '仅在池模式下生效。以英文逗号分隔的 HTTP 状态码(100-599),命中时触发同账号重试。留空使用默认值({default})。',
|
||||
customErrorCodes: '自定义错误码',
|
||||
customErrorCodesHint: '仅对选中的错误码停止调度',
|
||||
customErrorCodesWarning: '仅选中的错误码会停止调度,其他错误将返回 500。',
|
||||
customErrorCodesWarning:
|
||||
'自定义错误码仅用于筛选常规的账号错误处理(如停止调度、限流标记),不决定请求是否重试或切换账号。未选中的错误仍可能触发重试或切换账号,最终返回给客户端的状态码取决于网关路径和错误透传规则,并非统一返回 500。列表为空时不做筛选。',
|
||||
customErrorCodes429Warning:
|
||||
'429 已有内置的限流处理机制。添加到自定义错误码后,将直接停止调度而非临时限流。确定要添加吗?',
|
||||
customErrorCodes529Warning:
|
||||
|
||||
Reference in new issue
Block a user