From 601958ae97fdc6ed6ebfbe458a26fd0f83cf0731 Mon Sep 17 00:00:00 2001 From: hisen666 <2528646417@qq.com> Date: Sun, 12 Apr 2026 12:39:06 +0800 Subject: [PATCH] fix: add default scheduling fields for sub2api accounts --- content/sub2api-panel.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/content/sub2api-panel.js b/content/sub2api-panel.js index 747b994..2196f7d 100644 --- a/content/sub2api-panel.js +++ b/content/sub2api-panel.js @@ -5,6 +5,9 @@ console.log('[MultiPage:sub2api-panel] Content script loaded on', location.href) const SUB2API_PANEL_LISTENER_SENTINEL = 'data-multipage-sub2api-panel-listener'; const SUB2API_DEFAULT_GROUP_NAME = 'codex'; const SUB2API_DEFAULT_REDIRECT_URI = 'http://localhost:1455/auth/callback'; +const SUB2API_DEFAULT_CONCURRENCY = 10; +const SUB2API_DEFAULT_PRIORITY = 1; +const SUB2API_DEFAULT_RATE_MULTIPLIER = 1; if (document.documentElement.getAttribute(SUB2API_PANEL_LISTENER_SENTINEL) !== '1') { document.documentElement.setAttribute(SUB2API_PANEL_LISTENER_SENTINEL, '1'); @@ -368,6 +371,9 @@ async function step9_submitOpenAiCallback(payload = {}) { platform: 'openai', type: 'oauth', credentials, + concurrency: SUB2API_DEFAULT_CONCURRENCY, + priority: SUB2API_DEFAULT_PRIORITY, + rate_multiplier: SUB2API_DEFAULT_RATE_MULTIPLIER, group_ids: [groupId], auto_pause_on_expired: true, };