OpenAI image generation support #58
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Adds complete text-to-image generation and image editing support for DALL-E-2, DALL-E-3, and GPT-Image-1 models with unified
output_type: imageinterface, auto-detection of operation type, multi-image support, and automatic file saving.Features Implemented
Text-to-Image Generation:
Image Editing:
Output Processing:
multimodal_output/image/directoryPerformance Impact
How to Test
Basic Testing:
output_type: image, provide text promptsn: 3in parameters (DALL-E-2)Unit Tests:
Configuration Example:
Example Output
Single image (n=1)
{"id": "1", "image": "multimodal_output/image/1_image_0.png"}
Multiple images (n=3)
{"id": "1", "images": ["...image/1_images_0.png", "...1_images_1.png", "...1_images_2.png"]}
Checklist
Checklist