feat(image-generator): add gpt-image-2 model support#4437
feat(image-generator): add gpt-image-2 model support#4437waleedlatif1 merged 2 commits intostagingfrom
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
PR SummaryMedium Risk Overview Updates docs and integration metadata to reflect the new image model capabilities, refreshes Knowledge tool docs with new reranker inputs, updates Mem0 docs to match new async/paginated response fields, and adds a new Reviewed by Cursor Bugbot for commit 4073f0d. Configure here. |
Greptile SummaryAdds Confidence Score: 5/5Safe to merge — no P0 or P1 issues found in the feature implementation. The core feature code is correct: new params are validated against allowlists, the camelCase → snake_case mapping is handled in the right layer, the response handler already supports b64_json for gpt-image-2, and dall-e-3 is not affected. The one open comment is a P2 documentation nit on an unrelated table trigger doc file. No files require special attention; the documentation in Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[Image Generator Block] --> B{Model Selection}
B -->|dall-e-3| C[Size: 1024x1024 / 1024x1792 / 1792x1024\nQuality: standard / hd\nStyle: vivid / natural]
B -->|gpt-image-1| D[Size: auto / 1024x1024 / 1536x1024 / 1024x1536\nQuality: auto / low / medium / high\nBackground: auto / transparent / opaque\nOutputFormat: png / jpeg / webp\nModeration: auto / low]
B -->|gpt-image-2 NEW| E[Size: auto / 1024x1024 / 1536x1024 / 1024x1536 / 2560x1440 / 3840x2160\nQuality: auto / low / medium / high\nBackground: auto / opaque\nOutputFormat: png / jpeg / webp\nModeration: auto / low]
C --> F[ALLOWED_* Validation in block params]
D --> F
E --> F
F --> G[imageTool POST /v1/images/generations]
G -->|dall-e-3| H[url response → proxy fetch → base64]
G -->|gpt-image-1 / gpt-image-2| I[b64_json response → base64]
H --> J[Output: image base64 + metadata]
I --> J
Reviews (4): Last reviewed commit: "docs" | Re-trigger Greptile |
e3b2210 to
9b0dfdc
Compare
9b0dfdc to
ef93928
Compare
|
@greptile |
|
@cursor review |
ef93928 to
4d7079b
Compare
4d7079b to
bbb6ba1
Compare
bbb6ba1 to
8b052b9
Compare
|
@greptile |
|
@cursor review |
|
@greptileai please re-review — all prior comments resolved. |
|
@cursor review |
There was a problem hiding this comment.
✅ Bugbot reviewed your changes and found no new issues!
Comment @cursor review or bugbot run to trigger another review on this PR
Reviewed by Cursor Bugbot for commit 8b052b9. Configure here.
There was a problem hiding this comment.
✅ Bugbot reviewed your changes and found no new issues!
Comment @cursor review or bugbot run to trigger another review on this PR
Reviewed by Cursor Bugbot for commit 4073f0d. Configure here.
Summary
gpt-image-2as a model option in the Image Generator blockType of Change
Testing
Tested manually. Type check passes.
Checklist