From bf928aa06ec643df2f7ddff494c6fea4ef88f852 Mon Sep 17 00:00:00 2001 From: Enrico Ros Date: Thu, 11 Dec 2025 20:38:54 +0100 Subject: [PATCH] AIX: 'searching' item state with 5.2 Pro --- .../aix/server/dispatch/wiretypes/openai.wiretypes.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/modules/aix/server/dispatch/wiretypes/openai.wiretypes.ts b/src/modules/aix/server/dispatch/wiretypes/openai.wiretypes.ts index 3fa421bd2..0662016cf 100644 --- a/src/modules/aix/server/dispatch/wiretypes/openai.wiretypes.ts +++ b/src/modules/aix/server/dispatch/wiretypes/openai.wiretypes.ts @@ -1065,6 +1065,13 @@ export namespace OpenAIWire_Responses_Items { type: z.literal('web_search_call'), id: z.string(), // unique ID of the output item + // BREAKING CHANGE from OpenAI - 2025-12-11 + // redefining the following because we need 'searching' too here (seen during web search streaming) + status: z.enum([ + 'searching', // 2025-12-11: seen on OpenAI for `web_search_call` items when used with GPT 5.2 Pro, with web search on + 'in_progress', 'completed', 'incomplete', + ]).optional(), + // action may be present with `include: ['web_search_call.action.sources']` action: z.union([