You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: update image generation API to match latest OpenAI specs (#402)
* feat: update image generation API to match latest OpenAI specs
- 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 <[email protected]>
* add Auto to ImageQuality
---------
Co-authored-by: Claude <[email protected]>
Co-authored-by: Himanshu Neema <[email protected]>
/// A unique identifier representing your end-user, which will help OpenAI to monitor and detect abuse. [Learn more](https://platform.openai.com/docs/usage-policies/end-user-ids).
111
123
#[serde(skip_serializing_if = "Option::is_none")]
112
124
pubuser:Option<String>,
125
+
126
+
/// Control the content-moderation level for images generated by gpt-image-1.
127
+
/// Must be either `low` for less restrictive filtering or `auto` (default value).
0 commit comments