Hi,
When using o3 with the Responses API to stream image generation and turning on reasoning summary to detailed
, the image generation no longer returns any response.image_generation_call.partial_image
event, which causes the image download to fail.
const stream = await openai.responses.create({
model: "o3",
input:"Generate an image of a river.",
tools: [
{type: "image_generation", partial_images: 2}
],
reasoning: {effort: 'high', summary: "detailed"},
stream: true,
store: true
});
for await (const event of stream) {
if (event.type === "response.image_generation_call.partial_image") {
const idx = event.partial_image_index;
const imageBase64 = event.partial_image_b64;
const imageBuffer = Buffer.from(imageBase64, "base64");
fs.writeFileSync(`river${idx}.png`, imageBuffer);
}
}
Is not possible to have both reasoning summary and stream image generation?