mirror of
https://github.com/Wei-Shaw/sub2api.git
synced 2026-11-01 16:29:29 +00:00
Merge pull request #3230 from DaydreamCoding/feat/openai-cyber-policy-passthrough
feat(openai): cyber_policy 硬阻断全链路透传、审计与计费
This commit is contained in:
@@ -923,6 +923,7 @@ export default {
|
||||
ws: 'WS',
|
||||
stream: 'Stream',
|
||||
sync: 'Sync',
|
||||
cyber: 'Cyber',
|
||||
unknown: 'Unknown',
|
||||
in: 'In',
|
||||
out: 'Out',
|
||||
@@ -980,7 +981,7 @@ export default {
|
||||
categories: {
|
||||
auth: 'Auth failed', rate_limit: 'Rate limited', quota: 'Balance/Subscription',
|
||||
invalid_request: 'Invalid request', service_unavailable: 'Service unavailable',
|
||||
upstream: 'Upstream error', internal: 'Platform error', other: 'Other',
|
||||
upstream: 'Upstream error', internal: 'Platform error', other: 'Other', cyber: 'Cyber policy',
|
||||
},
|
||||
detail: {
|
||||
title: 'Error Request Detail',
|
||||
@@ -2627,6 +2628,9 @@ export default {
|
||||
emailOnHitHint: 'When enabled, send a risk-control email on every hit; auto-ban notices are always sent.',
|
||||
autoBan: 'Auto Ban User',
|
||||
autoBanHint: 'Disable the user, invalidate auth cache, and send a ban notice after the hit threshold is reached.',
|
||||
cyberPolicyExcludeBan: 'Exclude Cyber Policy Hits from Ban Count',
|
||||
cyberPolicyExcludeBanHint: 'When enabled, cyber_policy hits no longer count toward auto-ban violations: no ban judgment on the hit itself, and history rows are excluded from the rolling count. Logs and notice emails are unaffected.',
|
||||
violationNotCounted: 'Not counted',
|
||||
banThreshold: 'Ban Threshold',
|
||||
violationWindowHours: 'Count Window (hours)',
|
||||
hitRetentionDays: 'Hit Record Retention (days)',
|
||||
@@ -2771,6 +2775,7 @@ export default {
|
||||
action: {
|
||||
block: 'Blocked',
|
||||
keywordBlock: 'Keyword Blocked',
|
||||
cyberPolicy: 'Cyber policy',
|
||||
error: 'Error',
|
||||
},
|
||||
},
|
||||
@@ -5449,6 +5454,9 @@ export default {
|
||||
configureLink: 'Configure content moderation in Risk Control',
|
||||
enabled: 'Enable Risk Control',
|
||||
enabledHint: 'When off, the admin sidebar entry is hidden and gateway moderation is skipped.',
|
||||
cyberSessionBlock: 'Cyber session auto-block',
|
||||
cyberSessionBlockHint: 'When enabled, sessions hit by upstream cyber_policy are blocked locally for the TTL and no longer forwarded. Only the offending session is blocked; other sessions on the same key are unaffected.',
|
||||
cyberSessionBlockTTL: 'Block TTL (seconds)',
|
||||
},
|
||||
affiliate: {
|
||||
title: 'Affiliate (Invite Rebate)',
|
||||
|
||||
@@ -927,6 +927,7 @@ export default {
|
||||
ws: 'WS',
|
||||
stream: '流式',
|
||||
sync: '同步',
|
||||
cyber: '安全策略',
|
||||
unknown: '未知',
|
||||
in: '输入',
|
||||
out: '输出',
|
||||
@@ -984,7 +985,7 @@ export default {
|
||||
categories: {
|
||||
auth: '认证失败', rate_limit: '限流', quota: '余额/订阅',
|
||||
invalid_request: '参数错误', service_unavailable: '服务暂时不可用',
|
||||
upstream: '上游错误', internal: '平台错误', other: '其他',
|
||||
upstream: '上游错误', internal: '平台错误', other: '其他', cyber: '安全策略',
|
||||
},
|
||||
detail: {
|
||||
title: '错误请求详情',
|
||||
@@ -2704,6 +2705,9 @@ export default {
|
||||
emailOnHitHint: '开启后每次达到阈值都会向用户发送风控提醒邮件;自动封禁通知始终发送。',
|
||||
autoBan: '自动封禁用户',
|
||||
autoBanHint: '命中次数达到阈值后将禁用用户账号、刷新认证缓存并发送封禁通知邮件。',
|
||||
cyberPolicyExcludeBan: 'cyber_policy 不计入封号次数',
|
||||
cyberPolicyExcludeBanHint: '开启后,cyber_policy 拦截不再计入自动封号的违规次数:当次不判定封号,历史累计亦排除。风控日志与通知邮件照常。',
|
||||
violationNotCounted: '未计入封号',
|
||||
banThreshold: '封禁触发次数',
|
||||
violationWindowHours: '累计窗口(小时)',
|
||||
hitRetentionDays: '命中记录保留(天)',
|
||||
@@ -2848,6 +2852,7 @@ export default {
|
||||
action: {
|
||||
block: '拦截',
|
||||
keywordBlock: '关键词拦截',
|
||||
cyberPolicy: '网络安全策略',
|
||||
error: '异常',
|
||||
},
|
||||
},
|
||||
@@ -5609,6 +5614,9 @@ export default {
|
||||
configureLink: '前往 风控中心 配置内容审计',
|
||||
enabled: '启用风控中心',
|
||||
enabledHint: '关闭后管理员侧边栏入口隐藏,网关内容审计不会执行。',
|
||||
cyberSessionBlock: 'cyber 会话自动屏蔽',
|
||||
cyberSessionBlockHint: '开启后,被上游网络安全策略(cyber_policy)拦截的会话将在 TTL 内被本地屏蔽,不再发往上游。仅屏蔽该会话,不影响同 Key 其他会话。',
|
||||
cyberSessionBlockTTL: '屏蔽时长(秒)',
|
||||
},
|
||||
affiliate: {
|
||||
title: '邀请返利',
|
||||
|
||||
Reference in New Issue
Block a user