Fix Paseo Agent Zod 4 record schemas

This commit is contained in:
Mohamed Boudra
2026-07-02 08:38:27 +02:00
parent 4063671e3f
commit 3e535aa2d7
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -1948,7 +1948,7 @@ const PaseoAgentSetProviderOptionsSchema = z
apiKey: z.string().min(1).optional(),
baseUrl: z.string().url().optional(),
api: z.string().min(1).optional(),
headers: z.record(z.string()).optional(),
headers: z.record(z.string(), z.string()).optional(),
authHeader: z.boolean().optional(),
models: z.array(PaseoAgentProviderModelConfigSchema).min(1),
})
@@ -120,7 +120,7 @@ const PaseoAgentProviderOptionsSchema = z
baseUrl: z.string().url().optional(),
// Override the wire api. Required for `custom`; optional elsewhere.
api: z.string().min(1).optional(),
headers: z.record(z.string()).optional(),
headers: z.record(z.string(), z.string()).optional(),
// Advanced: send `Authorization: Bearer <apiKey>` as a header. Only needed for
// endpoints whose wire api doesn't already attach the key.
authHeader: z.boolean().optional(),
@@ -169,7 +169,7 @@ export const PaseoAgentConfigSchema = z
defaultProfile: z.string().min(1).optional(),
// Inference providers keyed by instance name. Multiple entries may share a
// type while pointing at different APIs/base URLs/models.
providers: z.record(PaseoAgentInferenceProviderSchema).optional(),
providers: z.record(z.string(), PaseoAgentInferenceProviderSchema).optional(),
})
.strict();