Files
pikasTech-unidesk/config/platform-infra/sub2api-codex-pool.yaml
T
2026-06-09 10:21:05 +00:00

113 lines
4.3 KiB
YAML

pool:
groupName: unidesk-codex-pool
apiKeyName: unidesk-codex-pool-api-key
apiKeySecretName: sub2api-codex-pool-api-key
apiKeySecretKey: API_KEY
minOwnerBalanceUsd: 1000
minOwnerConcurrency: 50
defaultAccountCapacity: 5
defaultTempUnschedulable:
enabled: true
rules:
- statusCode: 401
keywords: [unauthorized, invalid api key, invalid_api_key, authentication]
durationMinutes: 120
description: Credential/auth failures should leave the scheduler quickly and retry after a two-hour cooldown.
- statusCode: 403
keywords: [forbidden, access denied, quota, billing, capacity]
durationMinutes: 120
description: Permission, quota, or account-state failures should fail over to another account for at least two hours.
- statusCode: 429
keywords: [capacity, rate limit, rate_limit, quota, too many requests, overloaded, resource_exhausted]
durationMinutes: 120
description: Capacity and rate-limit responses should cool down this account for at least two hours and use another account.
- statusCode: 500
keywords: [capacity, overloaded, temporarily unavailable, temporary, upstream]
durationMinutes: 120
description: Transient upstream server failures should prefer another account for at least two hours.
- statusCode: 502
keywords: [capacity, overloaded, temporarily unavailable, temporary, upstream, bad gateway, upstream request failed, websocket dial, handshake response]
durationMinutes: 120
description: Gateway upstream failures should prefer another account for at least two hours.
- statusCode: 503
keywords: [capacity, overloaded, temporarily unavailable, temporary, upstream]
durationMinutes: 120
description: Service unavailable responses should prefer another account for at least two hours.
- statusCode: 529
keywords: [capacity, overloaded, temporarily unavailable, temporary]
durationMinutes: 120
description: Provider overloaded responses should cool down this account for at least two hours and use another account.
profiles:
entries:
- profile: default
accountName: unidesk-codex-403de5
configFile: config.toml.pre-sub2api
authFile: auth.json.pre-sub2api
fallbackConfigFile: config.toml
fallbackAuthFile: auth.json
openaiResponsesWebSocketsV2Mode: off
priority: 10
- profile: HY
accountName: unidesk-codex-hy
configFile: config.toml.HY
authFile: auth.json.HY
openaiResponsesWebSocketsV2Mode: passthrough
capacity: 10
priority: 1
- profile: gptclub
accountName: unidesk-codex-gptclub
configFile: config.toml.gptclub
authFile: auth.json.gptclub
priority: 100
- profile: only
accountName: unidesk-codex-only
configFile: config.toml.only
authFile: auth.json.only
priority: 110
- profile: fixwikihub
accountName: unidesk-codex-fixwikihub
configFile: config.toml.fixwikihub
authFile: auth.json.fixwikihub
openaiResponsesWebSocketsV2Mode: off
priority: 10
- profile: zakuzaku
accountName: unidesk-codex-zakuzaku
configFile: config.toml.zakuzaku
authFile: auth.json.zakuzaku
priority: 10
- profile: 17nas
accountName: unidesk-codex-17nas
configFile: config.toml.17nas
authFile: auth.json.17nas
priority: 10
upstreamUserAgent: codex_cli_rs/0.137.0 (Ubuntu 22.04; x86_64) xterm-256color
publicExposure:
enabled: true
proxyName: platform-infra-sub2api
configMapName: sub2api-frpc-config
deploymentName: sub2api-frpc
frpcImage: fatedier/frpc:v0.68.1
serverAddr: 74.48.78.17
serverPort: 7000
remotePort: 21880
localIP: sub2api.platform-infra.svc.cluster.local
localPort: 8080
publicBaseUrl: https://sub2api.74-48-78-17.nip.io
masterBaseUrl: http://127.0.0.1:21880
masterFrps:
configPath: /opt/hwlab-frp/frps.dev.toml
containerName: hwlab-frps-dev
masterCaddy:
enabled: true
domain: sub2api.74-48-78-17.nip.io
configPath: /etc/caddy/Caddyfile
serviceName: caddy
upstreamBaseUrl: http://127.0.0.1:21880
localCodex:
backupSuffix: pre-sub2api
providerName: OpenAI
wireApi: responses
supportsWebSockets: true
responsesWebSocketsV2: true
responsesSmokeModel: gpt-5.5