dylanshine / openai-kit

A community Swift package used to interact with the OpenAI API
https://platform.openai.com/docs/api-reference
MIT License
692 stars 107 forks source link

Add Stream support when creating Chat completions #36

Closed dylanshine closed 1 year ago

hyouuu commented 1 year ago

Thanks for adding this @dylanshine ! May I ask, if I'm using openai-kit on my Vapor server as a proxy to my client apps, how could I serve the stream results to client apps using AsyncThrowingStream or other techniques?