Skip to content

feat: update image generation API to match latest OpenAI specs #402

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Madoshakalaka
Copy link

@Madoshakalaka Madoshakalaka commented Jul 8, 2025

Summary

  • Added ImageModeration enum with 'auto' (default) and 'low' values for content-moderation control
  • Added moderation parameter to CreateImageRequest for controlling content filtering on gpt-image-1
  • Extended ImageQuality enum to support 'high', 'medium', and 'low' values for gpt-image-1 model

- Add ImageModeration enum with 'auto' (default) and 'low' values
- Add moderation parameter to CreateImageRequest for gpt-image-1
- Extend ImageQuality enum to support 'high', 'medium', 'low' for gpt-image-1

These changes align with the latest OpenAI API documentation for image generation.

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

Co-Authored-By: Claude <noreply@anthropic.com>
@Madoshakalaka
Copy link
Author

Madoshakalaka commented Jul 8, 2025

previously talked about here
#314 (comment)

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.

1 participant