config: add per-tier auth_mode

This commit is contained in:
William Valentin
2026-02-15 10:23:03 -08:00
parent f2cdd1abd2
commit 9755487793
4 changed files with 37 additions and 0 deletions
+2
View File
@@ -49,6 +49,8 @@ const modelConfigBaseSchema = z.object({
endpoint: z.string().optional(),
api_key: z.string().optional(),
auth_token: z.string().optional(),
/** Credential selection strategy for this tier (provider-specific). */
auth_mode: z.enum(['auto', 'api_key', 'oauth']).optional(),
/** Use OAuth credential flow (provider-specific). */
use_oauth: z.boolean().optional(),
for: z.array(z.string()).optional(),