This commit is contained in:
nai-degen
2024-08-14 14:41:47 -05:00
parent 6d323f6ea1
commit f7fd5f00f2
+3 -1
View File
@@ -45,7 +45,9 @@ const BaseMistralAIV1CompletionsSchema = z.object({
.default([])
.transform((v) => (Array.isArray(v) ? v : [v])),
random_seed: z.number().int().min(0).optional(),
response_format: z.enum(["text", "json_object"]).optional().default("text"),
response_format: z
.object({ type: z.enum(["text", "json_object"]) })
.optional(),
safe_prompt: z.boolean().optional().default(false),
});