From 2e3c2cf5923210982c2d07b80b52edfb69732ae2 Mon Sep 17 00:00:00 2001 From: William Drake Date: Wed, 30 Sep 2026 13:54:33 -0400 Subject: [PATCH 1/2] 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 --- frontend/src/i18n/locales/en/admin/accounts.ts | 2 +- frontend/src/i18n/locales/zh/admin/accounts.ts | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/frontend/src/i18n/locales/en/admin/accounts.ts b/frontend/src/i18n/locales/en/admin/accounts.ts index 8ed2917679..2fb2f2b8c7 100644 --- a/frontend/src/i18n/locales/en/admin/accounts.ts +++ b/frontend/src/i18n/locales/en/admin/accounts.ts @@ -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: diff --git a/frontend/src/i18n/locales/zh/admin/accounts.ts b/frontend/src/i18n/locales/zh/admin/accounts.ts index 654ba20c3c..5ba847948d 100644 --- a/frontend/src/i18n/locales/zh/admin/accounts.ts +++ b/frontend/src/i18n/locales/zh/admin/accounts.ts @@ -945,7 +945,8 @@ export default { poolModeRetryStatusCodesHint: '仅在池模式下生效。以英文逗号分隔的 HTTP 状态码(100-599),命中时触发同账号重试。留空使用默认值({default})。', customErrorCodes: '自定义错误码', customErrorCodesHint: '仅对选中的错误码停止调度', - customErrorCodesWarning: '仅选中的错误码会停止调度,其他错误将返回 500。', + customErrorCodesWarning: + '自定义错误码仅用于筛选常规的账号错误处理(如停止调度、限流标记),不决定请求是否重试或切换账号。未选中的错误仍可能触发重试或切换账号,最终返回给客户端的状态码取决于网关路径和错误透传规则,并非统一返回 500。列表为空时不做筛选。', customErrorCodes429Warning: '429 已有内置的限流处理机制。添加到自定义错误码后,将直接停止调度而非临时限流。确定要添加吗?', customErrorCodes529Warning: From 00940743d2b89cfc6fc857bf830103cb94befe8d Mon Sep 17 00:00:00 2001 From: William Drake Date: Wed, 30 Sep 2026 14:02:28 -0400 Subject: [PATCH 2/2] fix(deps): upgrade axios to 1.20.0 to pass security audit --- frontend/package.json | 2 +- frontend/pnpm-lock.yaml | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/frontend/package.json b/frontend/package.json index ea14f61962..19d2303c72 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -21,7 +21,7 @@ "@stripe/stripe-js": "^9.0.1", "@tanstack/vue-virtual": "^3.13.23", "@vueuse/core": "^10.7.0", - "axios": "^1.18.0", + "axios": "^1.20.0", "chart.js": "^4.4.1", "dompurify": "^3.4.14", "driver.js": "^1.4.0", diff --git a/frontend/pnpm-lock.yaml b/frontend/pnpm-lock.yaml index fef7a9441b..8df2e3e153 100644 --- a/frontend/pnpm-lock.yaml +++ b/frontend/pnpm-lock.yaml @@ -30,8 +30,8 @@ importers: specifier: ^10.7.0 version: 10.11.1(vue@3.5.26(typescript@5.6.3)) axios: - specifier: ^1.18.0 - version: 1.18.1 + specifier: ^1.20.0 + version: 1.20.0 chart.js: specifier: ^4.4.1 version: 4.5.1 @@ -1858,8 +1858,8 @@ packages: peerDependencies: postcss: '>=8.5.18' - axios@1.18.1: - resolution: {integrity: sha512-3nTvFlvpn9Zu/RkHUqtc7/+al4UpRW5az71ap5zccp6e8RAYEzhMTecX8Dz1wWDYrPpUoB1HAQEGEAEvUr7S9g==} + axios@1.20.0: + resolution: {integrity: sha512-r8aOh8j9cGKpgQAqpzrUHnSIc6a59Y3Xf/cv8sy1DrHCkZHzQGEuoq1tARk6qSyDdtQGSDgpb9kFlruzPvrgwg==} babel-plugin-macros@3.1.0: resolution: {integrity: sha512-Cg7TFGpIr01vOQNODXOOaGz2NpCU5gl8x1qJFbb6hbZxR7XrcE2vtbAsTAbJ7/xwJtUuJEw8K8Zr/AE0LHlesg==} @@ -6484,7 +6484,7 @@ snapshots: postcss: 8.5.23 postcss-value-parser: 4.2.0 - axios@1.18.1: + axios@1.20.0: dependencies: follow-redirects: 1.16.0 form-data: 4.0.6