From f082a9563a64e09fbcaac7dfd0b3dce664634eae Mon Sep 17 00:00:00 2001 From: Wauplin Date: Thu, 7 Aug 2025 12:36:53 +0200 Subject: [PATCH] Accept any logprobs in output_text input --- src/schemas.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/schemas.ts b/src/schemas.ts index 380c44c..dcc7708 100644 --- a/src/schemas.ts +++ b/src/schemas.ts @@ -101,8 +101,8 @@ export const createResponseParamsSchema = z.object({ z.object({ type: z.literal("output_text"), text: z.string(), - annotations: z.array(z.object({})).nullable().optional(), // TODO: incomplete - logprobs: z.array(z.object({})).nullable().optional(), // TODO: incomplete + annotations: z.array(z.record(z.any())).nullable().optional(), // TODO: incomplete + logprobs: z.array(z.record(z.any())).nullable().optional(), // TODO: incomplete }), z.object({ type: z.literal("refusal"),