Since ChatGPT came out, I’ve been wanting to spend some time playing around with OpenAI APIs. Finally, I found some free time to do just that. While attempting to integrate some of the functionality into a few projects, I thought it would be nice to create a library that supports all available endpoints. I know there are a few built-in open-source repos already, but I’m not sure if they are updated or if they support all the current endpoints. So, I went ahead and created one based on the latest OpenAI documentation.
Note: To use this library, you MUST have an OpenAI API key.
This library is available through Swift Package Manager, you can add it to your project using this link, and as I mentioned, it encompasses all the currently available OpenAI endpoints and functionalities.