New thinking budget for 2.5 flash
This commit is contained in:
@@ -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({}),
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user