mirror of
https://github.com/Wei-Shaw/sub2api.git
synced 2026-11-24 23:21:18 +00:00
fix: 完善上游 Sub2API 计费倍率探测与账号展示
This commit is contained in:
1 parent
bc50c9d013
commit
d2585097f3
30 files changed
+1311
-183
No files matched your search
@@ -175,10 +175,8 @@ export default {
|
||||
usageWindowsHint: '"5h / 7d" are the upstream account\'s official rolling usage windows (e.g. OpenAI ChatGPT, Claude). They are imposed by the upstream provider on the account itself — not configured by sub2api, and unrelated to the models you map. Usage resets automatically once each window rolls over, and the limit cannot be lifted from within sub2api.',
|
||||
upstreamBilling: {
|
||||
trustWarning: 'This rate is declared by the upstream site for the current API key. Sub2API cannot verify that it matches actual charges. The upstream site or an intermediary may return forged, stale, or modified data. Verify it against bills, balance changes, and actual usage.',
|
||||
autoProbeSettings: 'Upstream rate auto probe',
|
||||
intervalMinutes: 'Probe interval (minutes)',
|
||||
autoProbe: 'Auto probe',
|
||||
autoProbeHint: 'Probe this account on the global interval when global probing is enabled.',
|
||||
autoProbe: 'Automatically probe upstream declared rate',
|
||||
autoProbeHint: 'Probe this account\'s upstream declared rate on the global interval when global probing is enabled.',
|
||||
manualProbe: 'Probe upstream rate now',
|
||||
stale: 'Stale',
|
||||
unsupported: 'Unsupported',
|
||||
@@ -190,8 +188,18 @@ export default {
|
||||
noPeakRate: 'Peak rate: disabled',
|
||||
effectiveRate: 'Current rate: {value}x',
|
||||
updatedAt: 'Updated: {value}',
|
||||
settingsSaved: 'Upstream rate probe settings saved',
|
||||
settingsFailed: 'Failed to save upstream rate probe settings',
|
||||
nextProbeAt: 'Next probe: {value}',
|
||||
lastDetectedRate: 'Last detected rate: {value}x',
|
||||
lastDetectedAt: 'Last detected: {value}',
|
||||
elapsedSince: 'Elapsed: {value}',
|
||||
justNow: 'less than 1 minute',
|
||||
minutesAgo: '{count} minutes',
|
||||
hoursAgo: '{count} hours',
|
||||
daysAgo: '{count} days',
|
||||
accountProbeState: 'Automatic detection for this account:',
|
||||
globalProbeState: 'Global probe switch:',
|
||||
enabled: 'On',
|
||||
disabled: 'Off',
|
||||
probeFailed: 'Failed to probe upstream rate',
|
||||
noEligibleAccounts: 'Select OpenAI API key accounts',
|
||||
batchLimit: 'A batch can probe at most 20 accounts',
|
||||
|
||||
@@ -313,6 +313,16 @@ export default {
|
||||
allowUngroupedKey: 'Allow Ungrouped Key Scheduling',
|
||||
allowUngroupedKeyHint: 'When disabled, API Keys not assigned to any group cannot make requests (403 Forbidden). Keep disabled to ensure all Keys belong to a specific group.'
|
||||
},
|
||||
upstreamBillingProbe: {
|
||||
title: 'Upstream Rate Auto Detection',
|
||||
description: 'Periodically retrieve billing rates declared by upstream Sub2API sites connected to OpenAI API keys.',
|
||||
enabled: 'Enable global auto detection',
|
||||
enabledHint: 'When enabled, scheduled detection runs only for accounts that also enable automatic detection. Disabling stops all scheduled detection; manual detection remains available.',
|
||||
intervalMinutes: 'Detection interval (minutes)',
|
||||
intervalHint: 'Range: 5–1440 minutes. A successful result remains valid for two detection intervals.',
|
||||
saved: 'Upstream rate auto detection settings saved',
|
||||
saveFailed: 'Failed to save upstream rate auto detection settings'
|
||||
},
|
||||
gatewayForwarding: {
|
||||
title: 'Request Forwarding',
|
||||
description: 'Control how requests are forwarded to upstream OAuth accounts',
|
||||
|
||||
@@ -131,10 +131,8 @@ export default {
|
||||
usageWindowsHint: '“5h / 7d”是上游账号(如 OpenAI ChatGPT、Claude)官方的滚动用量窗口限制,由上游对账号设定,并非 sub2api 配置,也与你映射的模型无关。窗口滚动到期后用量会自动重置,无法在 sub2api 端解除该限制。',
|
||||
upstreamBilling: {
|
||||
trustWarning: '此倍率由上游站点针对当前 API Key 自行声明。Sub2API 无法验证该值是否与实际扣费一致;上游站点或中间代理可能返回伪造、过期或被篡改的数据。请结合账单、余额变化和实际用量自行核验。',
|
||||
autoProbeSettings: '上游倍率自动探测',
|
||||
intervalMinutes: '探测周期(分钟)',
|
||||
autoProbe: '自动探测',
|
||||
autoProbeHint: '启用后按全局探测周期查询此账号;全局探测关闭时不会执行。',
|
||||
autoProbe: '自动探测上游声明倍率',
|
||||
autoProbeHint: '启用后按全局探测周期查询此账号的上游声明倍率;全局探测关闭时不会执行。',
|
||||
manualProbe: '立即探测上游倍率',
|
||||
stale: '已过期',
|
||||
unsupported: '不支持',
|
||||
@@ -146,8 +144,18 @@ export default {
|
||||
noPeakRate: '高峰倍率:未启用',
|
||||
effectiveRate: '当前倍率:{value}x',
|
||||
updatedAt: '更新时间:{value}',
|
||||
settingsSaved: '上游倍率探测设置已保存',
|
||||
settingsFailed: '保存上游倍率探测设置失败',
|
||||
nextProbeAt: '下一次探测:{value}',
|
||||
lastDetectedRate: '上次探测倍率:{value}x',
|
||||
lastDetectedAt: '上次探测时间:{value}',
|
||||
elapsedSince: '已过去:{value}',
|
||||
justNow: '不足 1 分钟',
|
||||
minutesAgo: '{count} 分钟',
|
||||
hoursAgo: '{count} 小时',
|
||||
daysAgo: '{count} 天',
|
||||
accountProbeState: '当前账号自动检测:',
|
||||
globalProbeState: '全局探测开关:',
|
||||
enabled: '打开',
|
||||
disabled: '关闭',
|
||||
probeFailed: '探测上游倍率失败',
|
||||
noEligibleAccounts: '请选择 OpenAI API Key 账号',
|
||||
batchLimit: '每次最多探测 20 个账号',
|
||||
|
||||
@@ -306,6 +306,16 @@ export default {
|
||||
allowUngroupedKey: '允许未分组 Key 调度',
|
||||
allowUngroupedKeyHint: '关闭后,未分配到任何分组的 API Key 将无法发起请求(返回 403)。建议保持关闭以确保所有 Key 都归属明确的分组。'
|
||||
},
|
||||
upstreamBillingProbe: {
|
||||
title: '上游倍率自动探测',
|
||||
description: '定期获取 OpenAI API Key 所连接上游 Sub2API 站点声明的计费倍率。',
|
||||
enabled: '启用全局自动探测',
|
||||
enabledHint: '开启后,仅对账号自身已启用自动检测的账号执行定时探测;关闭后停止所有定时探测,手动探测不受影响。',
|
||||
intervalMinutes: '探测周期(分钟)',
|
||||
intervalHint: '范围 5–1440 分钟。成功探测结果的有效期为两个探测周期。',
|
||||
saved: '上游倍率自动探测设置已保存',
|
||||
saveFailed: '保存上游倍率自动探测设置失败'
|
||||
},
|
||||
gatewayForwarding: {
|
||||
title: '请求转发行为',
|
||||
description: '控制请求转发到上游 OAuth 账号时的行为',
|
||||
|
||||
Reference in new issue
Block a user