Skip to content

Commit ddbc5e6

Browse files
committed
AIX: OpenAI: fix Responses API breaking change
1 parent 5dae51d commit ddbc5e6

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

src/modules/aix/server/dispatch/wiretypes/openai.wiretypes.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1012,6 +1012,16 @@ export namespace OpenAIWire_Responses_Items {
10121012
id: z.string(), // unique ID of the image generation call (output item ID)
10131013
result: z.string().optional(), // base64 image data when completed
10141014
revised_prompt: z.string().optional(), // the revised prompt used for generation
1015+
// BREAKING CHANGE from OpenAI - 2025-09-30
1016+
// redefining the following because we need 'generating' too here
1017+
status: z.enum([
1018+
'generating', // 2025-09-30: seen on OpenAI for `image_generation_call` items
1019+
'in_progress', 'completed', 'incomplete',
1020+
]).optional(),
1021+
// NOTE: we also see the following in the image_generation_call item
1022+
// background: z.enum(['transparent', 'opaque', 'auto' /* default */]).optional(),
1023+
// output_format: z.enum(['png' /* default */, 'jpeg', 'webp']).optional(),
1024+
// quality: z.enum(['auto', 'high', 'medium', 'low']).optional(),
10151025
});
10161026

10171027
// const OutputCodeInterpreterCallItem_schema = _OutputItemBase_schema.extend({

0 commit comments

Comments
 (0)