griptape icon indicating copy to clipboard operation
griptape copied to clipboard

feat: add support for gpt-image-1

Open collindutter opened this issue 7 months ago • 3 comments

Describe your changes

Adds support for gpt-image-1 by adjusting the default parameters.

Issue ticket number and link

NA


📚 Documentation preview 📚: https://griptape--1921.org.readthedocs.build//1921/

collindutter avatar Apr 28 '25 20:04 collindutter

as good as it can get given the state of the image gen API. approved after 3.9 issues are fixed

I want to do another pass of manual testing before merging. The fragile model/parameter permutations makes me a bit uneasy.

collindutter avatar Apr 30 '25 19:04 collindutter

Codecov Report

:x: Patch coverage is 90.24390% with 4 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
...image_generation/openai_image_generation_driver.py 90.24% 2 Missing and 2 partials :warning:

:loudspeaker: Thoughts on this report? Let us know!

codecov[bot] avatar Apr 30 '25 19:04 codecov[bot]

I couldn't see the docs changes in this PR, but the link to the openai docs is incorrect in our docs here: https://griptape--1921.org.readthedocs.build/1921/griptape-framework/drivers/image-generation-drivers/#openai

if you click on the link: image

which is to: https://platform.openai.com/docs/guides/images/introduction

we get a Page not found error.

I think this is the right link: https://platform.openai.com/docs/guides/image-generation?image-generation-model=gpt-image-1

shhlife avatar May 01 '25 21:05 shhlife