feat(models): add auth profile cooldown for api key pools
This commit is contained in:
@@ -144,6 +144,8 @@ const modelConfigBaseSchema = z.object({
|
||||
endpoint: z.string().optional(),
|
||||
api_key: z.string().optional(),
|
||||
api_keys: z.array(z.string().min(1)).optional(),
|
||||
/** Cooldown (ms) before retrying a failed key/token profile in rotation pools. */
|
||||
auth_profile_cooldown_ms: z.number().min(0).max(3_600_000).optional(),
|
||||
auth_token: z.string().optional(),
|
||||
/** Credential selection strategy for this tier (provider-specific). */
|
||||
auth_mode: z.enum(['auto', 'api_key', 'oauth']).optional(),
|
||||
|
||||
Reference in New Issue
Block a user