Skip to content

Add /draw image generation command - #27

Merged
kkdai merged 2 commits into
masterfrom
copilot/check-remaining-tasks-20
Oct 4, 2026
Merged

kkdai merged 2 commits into
masterfrom
copilot/check-remaining-tasks-20

Conversation

Copilot AI commented Oct 4, 2026

Copy link
Copy Markdown
Contributor

Part of #20 (Phase 3).

  • Add /draw <prompt>: generates an image via the Images API and saves it as draw-<time>.png in the current directory (never overwrites).
  • Model configurable with OPENAI_IMAGE_MODEL (default gpt-image-1).
  • Supports Ctrl+C and --timeout.
  • Falls back to printing the URL if the API returns one instead of base64 data.
  • Add test (TestDrawSavesImage) and README/help text.

Co-authored-by: kkdai <2252691+kkdai@users.noreply.github.com>
Co-authored-by: kkdai <2252691+kkdai@users.noreply.github.com>
@kkdai
kkdai marked this pull request as ready for review October 4, 2026 07:18
@kkdai
kkdai merged commit 21a04e2 into master Oct 4, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants