adamrushy / OpenAISwift

This is a wrapper library around the ChatGPT and OpenAI HTTP API
MIT License
1.6k stars 242 forks source link

Can we get support for images/create-edit & images/create-variation? #75

Open LawrenceNorman opened 1 year ago

LawrenceNorman commented 1 year ago

Just noticed that these APIs were available: https://platform.openai.com/docs/api-reference/images/create-edit https://platform.openai.com/docs/api-reference/images/create-variation

Would be nice to have these added!

optera15 commented 1 year ago

Agreed! It's somewhat odd how progress on this project is so seemingly sleepy given the enormity of the power of these OpenAI APIs and how easy it should be to enhance/expand this package through use of GPT-4 itself. I wrapped the salient parts of the ElevenLabs API in 20 minutes yesterday, or rather, GPT-4 did as per my instructions.

Then again, like everyone else I'm too caught up in doing other development work with AI right now to contribute much of anything myself to OpenAISwift.

MarkHoath commented 11 months ago

I have just completed this and hopefully it gets merged quickly.

Because of the different handling of images between iOS and MacOS, you will need to do all the checking prior to sending paramters (dimensions, size, alpha channels).