griptape
griptape copied to clipboard
feat: add support for gpt-image-1
- [x] I have read and agree to the contributing guidelines.
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/
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.
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!
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:
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