New thinking budget for 2.5 flash

This commit is contained in:
reanon
2025-04-17 21:13:36 +00:00
parent 1e8f55f96d
commit 14a1203be7
+6 -1
View File
@@ -75,7 +75,12 @@ export const GoogleAIV1GenerateContentSchema = z
topP: z.number().min(0).max(1).optional(),
topK: z.number().min(1).max(40).optional(),
stopSequences: z.array(z.string().max(500)).max(5).optional(),
thinkingConfig: z.object({includeThoughts: z.boolean().optional()}).optional()
thinkingConfig: z.object({includeThoughts: z.boolean().optional()}).optional(),
// Support for new Gemini 2.5 thinking budget
thinking_budget: z.union([
z.literal("auto"),
z.number().int().min(0).max(24576)
]).optional()
})
.default({}),
})