feat: support access-key protected admin
This commit is contained in:
@@ -205,6 +205,10 @@ function buildProfileConfig({ profileName, profileEnv, existingGatewayConfig, pr
|
|||||||
"stream disconnected before completion: Concurrency limit exceeded for account, please retry later",
|
"stream disconnected before completion: Concurrency limit exceeded for account, please retry later",
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
management_access_key:
|
||||||
|
profileEnv.CODEX_RETRY_GATEWAY_MANAGEMENT_ACCESS_KEY ||
|
||||||
|
existingGatewayConfig?.management_access_key ||
|
||||||
|
"",
|
||||||
upstream_fetch_retry_attempts: profileEnv.CODEX_RETRY_GATEWAY_UPSTREAM_FETCH_RETRY_ATTEMPTS
|
upstream_fetch_retry_attempts: profileEnv.CODEX_RETRY_GATEWAY_UPSTREAM_FETCH_RETRY_ATTEMPTS
|
||||||
? Number.parseInt(`${profileEnv.CODEX_RETRY_GATEWAY_UPSTREAM_FETCH_RETRY_ATTEMPTS}`, 10)
|
? Number.parseInt(`${profileEnv.CODEX_RETRY_GATEWAY_UPSTREAM_FETCH_RETRY_ATTEMPTS}`, 10)
|
||||||
: Number.parseInt(`${existingGatewayConfig?.upstream_fetch_retry_attempts || 5}`, 10),
|
: Number.parseInt(`${existingGatewayConfig?.upstream_fetch_retry_attempts || 5}`, 10),
|
||||||
|
|||||||
Reference in New Issue
Block a user