better interleaved thinking support (#5298)

This commit is contained in:
Aiden Cline
2025-12-09 14:32:12 -08:00
committed by GitHub
parent 0aa3e6c270
commit df64612d54
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(),