feat: 支持后台设置是否启用整流开关

This commit is contained in:
shaw
2026-03-07 21:45:18 +08:00
parent bcb6444f89
commit a3791104f9
18 changed files with 557 additions and 7 deletions

View File

@@ -3976,6 +3976,18 @@ export default {
saved: 'Stream timeout settings saved',
saveFailed: 'Failed to save stream timeout settings'
},
rectifier: {
title: 'Request Rectifier',
description: 'Automatically fix request parameters and retry when upstream returns specific errors',
enabled: 'Enable Request Rectifier',
enabledHint: 'Master switch - disabling turns off all rectification features',
thinkingSignature: 'Thinking Signature Rectifier',
thinkingSignatureHint: 'Automatically strip signatures and retry when upstream returns thinking block signature validation errors',
thinkingBudget: 'Thinking Budget Rectifier',
thinkingBudgetHint: 'Automatically set budget to 32000 and retry when upstream returns budget_tokens constraint error (≥1024)',
saved: 'Rectifier settings saved',
saveFailed: 'Failed to save rectifier settings'
},
saveSettings: 'Save Settings',
saving: 'Saving...',
settingsSaved: 'Settings saved successfully',

View File

@@ -4150,6 +4150,18 @@ export default {
saved: '流超时设置保存成功',
saveFailed: '保存流超时设置失败'
},
rectifier: {
title: '请求整流器',
description: '当上游返回特定错误时,自动修正请求参数并重试,提高请求成功率',
enabled: '启用请求整流器',
enabledHint: '总开关,关闭后所有整流功能均不生效',
thinkingSignature: 'Thinking 签名整流',
thinkingSignatureHint: '当上游返回 thinking block 签名校验错误时,自动去除签名并重试',
thinkingBudget: 'Thinking Budget 整流',
thinkingBudgetHint: '当上游返回 budget_tokens 约束错误≥1024自动将 budget 设为 32000 并重试',
saved: '整流器设置保存成功',
saveFailed: '保存整流器设置失败'
},
saveSettings: '保存设置',
saving: '保存中...',
settingsSaved: '设置保存成功',