Extract image bytes from OpenAI-style content parts, rewriting the parts to the template's {type:"image"} form.
Extract image bytes from OpenAI-style content parts, rewriting the parts to the template's {type:"image"} form.