mirror of
https://github.com/Wei-Shaw/sub2api.git
synced 2026-10-30 08:22:34 +00:00
feat: 按上游计费倍率调度 OpenAI 账号
This commit is contained in:
@@ -170,7 +170,7 @@ export default {
|
||||
baseShort: 'Base',
|
||||
stickyShort: 'Sticky',
|
||||
ungrouped: 'Ungrouped',
|
||||
hint: 'Displayed as "group / base score / sticky bonus". The base score is computed within the current filtered candidate set and includes priority, load, queue depth, error rate, first-token latency, reset window, quota headroom, and related factors. The sticky bonus applies only when sticky weighting is enabled for previous_response_id or session_hash. Higher scores are preferred.'
|
||||
hint: 'Displayed as "group / base score / sticky bonus". The base score is computed within the current filtered candidate set and includes priority, load, queue depth, error rate, first-token latency, reset window, quota headroom, billing rate, and related factors. The sticky bonus applies only when sticky weighting is enabled for previous_response_id or session_hash. Higher scores are preferred.'
|
||||
},
|
||||
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: {
|
||||
|
||||
@@ -1105,6 +1105,11 @@ export default {
|
||||
openaiExperimentalScheduler: {
|
||||
title: 'OpenAI experimental scheduler policy',
|
||||
description: "Disabled by default. When enabled, this only changes the gateway's experimental account-selection policy for OpenAI traffic; it does not indicate an upstream OpenAI capability.",
|
||||
lowRatePriorityTitle: 'Prefer lower rates',
|
||||
lowRatePriorityDescription: 'When enabled, accounts with lower billing rates are preferred. If rates are equal, account priority, current load, and other scheduling factors are considered. This switch is ignored when the experimental scheduler is enabled.',
|
||||
oauthRateTitle: 'OAuth scheduling reference rate',
|
||||
oauthRatePriorityDescription: 'When a group contains both API Key and OAuth accounts, this rate is used to order OAuth accounts alongside probed API Key billing rates.',
|
||||
oauthRateWeightedDescription: 'When a group contains both API Key and OAuth accounts, this rate is used for OAuth accounts when calculating the billing-rate score.',
|
||||
stickyWeightedTitle: 'Sticky weighting',
|
||||
stickyWeightedDescription: 'When enabled, previous_response_id and session_hash affinity are scored by the advanced scheduler. When disabled, sticky accounts keep the legacy hard-hit behavior.',
|
||||
subscriptionPriorityTitle: 'Subscription priority',
|
||||
@@ -1120,6 +1125,7 @@ export default {
|
||||
ttftWeight: 'TTFT',
|
||||
resetWeight: 'Reset window',
|
||||
quotaHeadroomWeight: 'Quota headroom',
|
||||
upstreamCostWeight: 'Billing rate',
|
||||
previousResponseWeight: 'previous_response sticky',
|
||||
sessionStickyWeight: 'session_hash sticky'
|
||||
},
|
||||
|
||||
@@ -126,7 +126,7 @@ export default {
|
||||
baseShort: '普通',
|
||||
stickyShort: '粘性',
|
||||
ungrouped: '未分组',
|
||||
hint: '显示格式为“分组名 / 基础分 / 粘性加分”。基础分按当前筛选条件限定的候选账号计算,包含优先级、负载、排队、错误率、首包延迟、重置窗口、额度余量等因子;粘性加分只在开启粘性加权时用于 previous_response_id 或 session_hash。分数越大越优先。'
|
||||
hint: '显示格式为“分组名 / 基础分 / 粘性加分”。基础分按当前筛选条件限定的候选账号计算,包含优先级、负载、排队、错误率、首包延迟、重置窗口、额度余量、计费倍率等因子;粘性加分只在开启粘性加权时用于 previous_response_id 或 session_hash。分数越大越优先。'
|
||||
},
|
||||
usageWindowsHint: '“5h / 7d”是上游账号(如 OpenAI ChatGPT、Claude)官方的滚动用量窗口限制,由上游对账号设定,并非 sub2api 配置,也与你映射的模型无关。窗口滚动到期后用量会自动重置,无法在 sub2api 端解除该限制。',
|
||||
upstreamBilling: {
|
||||
|
||||
@@ -1100,6 +1100,11 @@ export default {
|
||||
openaiExperimentalScheduler: {
|
||||
title: 'OpenAI 实验调度策略',
|
||||
description: '默认关闭。开启后仅影响本网关在 OpenAI 账号间的实验性调度选择逻辑,不代表上游 OpenAI 官方能力。',
|
||||
lowRatePriorityTitle: '低倍率优先',
|
||||
lowRatePriorityDescription: '开启后优先选择计费倍率较低的账号;倍率相同时,再比较账号优先级和当前负载等。启用实验调度策略后,此开关不生效。',
|
||||
oauthRateTitle: 'OAuth 调度参考倍率',
|
||||
oauthRatePriorityDescription: '同一分组同时包含 API Key 和 OAuth 账号时,OAuth 账号按此倍率与已探测的 API Key 计费倍率一起排序。',
|
||||
oauthRateWeightedDescription: '同一分组同时包含 API Key 和 OAuth 账号时,计算“计费倍率”得分时,OAuth 账号按此倍率参与计算。',
|
||||
stickyWeightedTitle: '粘性加权',
|
||||
stickyWeightedDescription: '开启后 previous_response_id 和 session_hash 粘性进入高级调度打分;关闭时仍按旧逻辑硬命中粘性账号。',
|
||||
subscriptionPriorityTitle: '订阅优先',
|
||||
@@ -1115,6 +1120,7 @@ export default {
|
||||
ttftWeight: '首包延迟',
|
||||
resetWeight: '重置窗口',
|
||||
quotaHeadroomWeight: '额度余量',
|
||||
upstreamCostWeight: '计费倍率',
|
||||
previousResponseWeight: 'previous_response 粘性',
|
||||
sessionStickyWeight: 'session_hash 粘性'
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user