OpenAISwift
OpenAISwift copied to clipboard
[QUESTION] Streaming from OpenAI token by token
Is this possible or planned?
It should be possible. https://github.com/adamrushy/OpenAISwift/pull/40 In my pull request, I've added all parameters except for "stream" and "logit_bias". The stream parameter makes it so that tokens are sent as server-sent events. This may require the use of another library such as https://github.com/inaka/EventSource.
Thanks for letting me know.
Regarding the implementation: See here (line 61) for another lib that does it, without external dependencies.
Why was this closed? No plans on implementing this?
Why was this closed? No plans on implementing this?