papyrus icon indicating copy to clipboard operation
papyrus copied to clipboard

Request streaming

Open F0x1d opened this issue 1 year ago • 2 comments
trafficstars

It will be cool and convenient if Papyrus supports requests streaming

F0x1d avatar Dec 19 '23 10:12 F0x1d

Thanks for the idea @F0x1d!

To clarify, what's the use case you are thinking of - something like uploading a large file, such as in a multipart request?

joshuawright11 avatar Dec 21 '23 17:12 joshuawright11

Large files can be downloaded this way. Also, for example, ChatGPT API provides "streamed" generation. It streams parts of the response as soon as they are generated by the server. Now i use urlSession.bytes to handle it, but it would be much more convenient to use Papyrus everywhere in the app

F0x1d avatar Dec 21 '23 17:12 F0x1d