feat: Beta策略支持按模型区分处理(模型白名单)

This commit is contained in:
shaw
2026-04-07 20:28:14 +08:00
parent b2e379cf7a
commit 7c60ee3c85
8 changed files with 255 additions and 24 deletions

View File

@@ -4587,7 +4587,19 @@ export default {
errorMessagePlaceholder: 'Custom error message when blocked',
errorMessageHint: 'Leave empty for default message',
saved: 'Beta policy settings saved',
saveFailed: 'Failed to save beta policy settings'
saveFailed: 'Failed to save beta policy settings',
modelWhitelist: 'Model Whitelist',
modelWhitelistHint: 'Leave empty to apply to all models. Supports exact match and wildcard prefix (e.g., claude-opus-*)',
modelPatternPlaceholder: 'e.g., claude-opus-* or claude-opus-4-6',
addModelPattern: 'Add model pattern',
removePattern: 'Remove',
fallbackAction: 'Fallback Action',
fallbackActionHint: 'Action for models not matching the whitelist',
fallbackErrorMessagePlaceholder: 'Custom error message when non-whitelisted models are blocked',
quickPresets: 'Quick Presets',
presetOpusOnly: 'Opus only for 1M',
presetOpusOnlyDesc: 'Pass for Opus, filter others',
commonPatterns: 'Common patterns'
},
saveSettings: 'Save Settings',
saving: 'Saving...',