better interleaved thinking support (#5298)

This commit is contained in:
Aiden Cline 2025-12-09 14:32:12 -08:00 committed by GitHub
commit df64612d54
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 414 additions and 1219 deletions

View file

@ -17,6 +17,16 @@ export namespace ModelsDev {
reasoning: z.boolean(),
temperature: z.boolean(),
tool_call: z.boolean(),
interleaved: z
.union([
z.literal(true),
z
.object({
field: z.enum(["reasoning_content", "reasoning_details"]),
})
.strict(),
])
.optional(),
cost: z
.object({
input: z.number(),