diff --git a/config/platform-infra/sub2api-codex-pool.yaml b/config/platform-infra/sub2api-codex-pool.yaml index 24347234..dfb45ef0 100644 --- a/config/platform-infra/sub2api-codex-pool.yaml +++ b/config/platform-infra/sub2api-codex-pool.yaml @@ -30,47 +30,47 @@ pool: rules: - statusCode: 400 keywords: [invalid_encrypted_content, encrypted content, could not be verified, could not be decrypted, bad_response_status_code, model_not_found, no available channel for model, unsupported, not supported, not support, 暂不支持, 可用模型] - durationMinutes: 5 + durationMinutes: 1 description: Stable upstream 400 model-routing or Responses encrypted-content compatibility failures should use another account. - statusCode: 401 keywords: [unauthorized, invalid api key, invalid_api_key, authentication, recovered upstream error] - durationMinutes: 5 + durationMinutes: 1 description: Credential/auth failures should briefly cool down this account and use another account. - statusCode: 403 keywords: [forbidden, access denied, quota, billing, capacity, weekly limit, less than 10% of your weekly limit left, run /status for a breakdown, recovered upstream error] - durationMinutes: 5 + durationMinutes: 1 description: Permission, quota, or account-state failures should briefly cool down this account and use another account. - statusCode: 429 keywords: [capacity, rate limit, rate_limit, quota, weekly limit, less than 10% of your weekly limit left, run /status for a breakdown, too many requests, overloaded, resource_exhausted, recovered upstream error] - durationMinutes: 5 + durationMinutes: 1 description: Capacity and rate-limit responses are often temporary; briefly cool down this account and use another account. - statusCode: 500 keywords: [capacity, overloaded, temporarily unavailable, temporary, upstream, recovered upstream error] - durationMinutes: 5 + durationMinutes: 1 description: Transient upstream server failures should briefly cool down this account and prefer another account. - statusCode: 502 keywords: [capacity, overloaded, temporarily unavailable, temporary, upstream, bad gateway, upstream request failed, unknown error, context deadline exceeded, context canceled, websocket dial, handshake response, recovered upstream error] - durationMinutes: 5 + durationMinutes: 1 description: Gateway upstream failures, including recovered upstream error wrappers, should briefly cool down this account. - statusCode: 413 keywords: [openai_error, payload too large, request too large, context length, context window, maximum context] - durationMinutes: 5 + durationMinutes: 1 description: Large-context upstream failures should cool down the selected account so a larger-context channel can handle the request. - statusCode: 503 keywords: [capacity, overloaded, temporarily unavailable, temporary, upstream, recovered upstream error, model_not_found, no available channel for model] - durationMinutes: 5 + durationMinutes: 1 description: Service unavailable and upstream model-routing failures should briefly cool down this account. - statusCode: 504 keywords: [gateway timeout, timeout, upstream, upstream request failed, unknown error, context deadline exceeded, context canceled, recovered upstream error] - durationMinutes: 5 + durationMinutes: 1 description: Gateway timeout responses should cool down the selected account so another account can handle the next request. - statusCode: 524 keywords: [timeout, a timeout occurred, cloudflare, gateway timeout, upstream, upstream request failed, unknown error, context deadline exceeded, context canceled, recovered upstream error] - durationMinutes: 5 + durationMinutes: 1 description: Cloudflare 524 timeout responses should cool down the selected account so another account can handle the next request. - statusCode: 529 keywords: [capacity, overloaded, temporarily unavailable, temporary, recovered upstream error] - durationMinutes: 5 + durationMinutes: 1 description: Provider overloaded responses should briefly cool down this account and use another account. profiles: entries: @@ -107,6 +107,7 @@ profiles: accountName: unidesk-codex-gptclub-sub2api configFile: config.toml.gptclub-sub2api authFile: auth.json.gptclub-sub2api + priority: 1 - profile: only accountName: unidesk-codex-only configFile: config.toml.only @@ -140,6 +141,10 @@ profiles: accountName: unidesk-codex-socap configFile: config.toml.socap authFile: auth.json.socap + - profile: yjxm1221 + accountName: unidesk-codex-yjxm1221 + configFile: config.toml.yjxm1221 + authFile: auth.json.yjxm1221 manualAccounts: bindingSources: active-target-egress-proxy: