Assistants API (and more) Wrapper in Swift

I was trying to find a Swift Wrapper that is updated and supports the latest endpoints of OpenAI, I was not able to find one so I created this GitHub - jamesrochabrun/SwiftOpenAI: An open-source Swift package for interacting with OpenAI's public API.
This library supports, Vision, TTS, Assistants API and even log probs in chat completions.

4 Likes

Now with stream support Release Assistant API Stream · jamesrochabrun/SwiftOpenAI · GitHub

2 Likes

About to try it now! I’ve been trying to enable assistant streaming for a while now. Please save me!

1 Like

can you contact me or make a youtube tutorial helping me to integrate my assistant api with swift? i can even pay if you want but i need it this week.

1 Like

I’ve implemented it. The only thing i’m missing is streaming.

Using the SwiftOpenAIExample, upon selecting “Configure Assistant”, I want to use my assistant that I have made. How do I use it?

1 Like

if you use your api key you should be able to see your agent.