Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@mkbehr
Copy link
Contributor

@mkbehr mkbehr commented Jan 14, 2026

The OpenAI image API has a bunch of different supported parameters depending on the model. As is, clawdbot will often need a few tries to get a working parameter set. This sets appropriate defaults for size, quality, and count, and documents the valid parameters per model in SKILL.md. Also adds a few model-specific parameters that the script couldn't set before (background and output-format for GPT image, style for DALL-E 3).

  • Generated with clawdbot and Clawd Code.
  • Lightly tested: I manually ran gen.py with each of the new example invocations in SKILL.md, and confirmed that they made images.
  • I manually checked all the code changes, and I understand what the code is doing.

@steipete steipete self-assigned this Jan 16, 2026
mkbehr and others added 3 commits January 16, 2026 08:37
- Auto-detect model and apply appropriate defaults for size/quality
- Add --background, --output-format, and --style parameters
- Enforce dall-e-3 count=1 limitation with automatic adjustment
- Omit quality parameter for dall-e-2 (not supported)
- Document model-specific parameters and supported values

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <[email protected]>
When --output-format is specified for GPT models, save files with
the correct extension (.webp, .jpeg, or .png) instead of always
using .png.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <[email protected]>
@steipete steipete force-pushed the openai-image-gen-fix branch from 84d956d to b3ab24e Compare January 16, 2026 08:42
@steipete steipete merged commit 52bdf57 into openclaw:main Jan 16, 2026
20 of 22 checks passed
@steipete
Copy link
Contributor

Landed via temp rebase onto main.\n\n- Gate: pnpm lint && pnpm build && pnpm test\n- Land commit: b3ab24e\n- Merge commit: 52bdf57\n\nThanks @mkbehr!

rsneh pushed a commit to rsneh/clawdbot that referenced this pull request Jan 21, 2026
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