Open imtsuki opened 1 year ago
Perfect solution! It'll be implemented in the next alpha :)
Perfect solution! It'll be implemented in the next alpha :)
I was wrong ;-; I now remember why I put off implementing this feature before, haha-
I can try to help if you don't mind :) I'll look into this issue later today
That would be great! Feel free to make a fork and draft a pull request :) I'll try to not let you do all of it-
Problem
The current version of this library does not support setting
stream: true
for EventSource responses. This means that when a user makes a request to the API that expects an EventSource response, the library cannot properly parse the incoming events.Solution
In addition to the existing
create()
function, add a new functionstream()
to build something likeCompletionStream
that implements thefutures::Stream
trait. Then, the user can use the following to call the API in streaming mode:Alternatives
No response