gptme icon indicating copy to clipboard operation
gptme copied to clipboard

Add streaming responses to web UI

Open ErikBjare opened this issue 1 year ago • 2 comments

This might require significant rewrite of how tokens are output, turning the request into a generator that emits tokens instead of a full message. The tokens can then be collected until an end of message token, returned over the API, while being consummated into a message at the end.

ErikBjare avatar Nov 22 '23 15:11 ErikBjare

In my opinion, the web interface should be a lower priority. The tool works very well on the command line, so to divert your efforts towards a web UI is not efficient. If someone else wants to step up, then it makes sense. What's the motivation for the web interface at all?

nslieske avatar Nov 22 '23 19:11 nslieske

It is a lower priority :)

It's not that much of a distraction, the changes required would improve the code overall anyway.

The web UI is nice for browsing past conversations, and in theory it'd be nice if it could act like a Jupyter-notebook style thing with inline plots and such. But you're right, I'm not going to divert significant efforts towards it right now.

ErikBjare avatar Nov 23 '23 09:11 ErikBjare