Notes

AstrBot / Provider / Images

Codex OAuth Image Streaming Notes

A short note on extending provider-side chat capability into reference image generation.

The Codex OAuth provider now exposes generate_image() as a plugin-callable capability. Callers pass a prompt, model, size, count, and reference image list; the provider assembles an image_generation tool request, reads SSE events, and stores generated images as local files.

That keeps upper-layer plugins such as ImgFlow away from backend event details. Reference images can be URLs or local files, and local files are converted to data URLs. Results return a file path, MIME type, and a small raw response fragment, so task folders, result delivery, and resend behavior can keep their existing shape.