OvidijusParsiunas / deep-chat

Fully customizable AI chatbot component for your website
https://deepchat.dev
MIT License
1.26k stars 170 forks source link

streaming in WebSocket mode #212

Open ronald888 opened 2 weeks ago

ronald888 commented 2 weeks ago

I'd like to use deep-chat with a websocket connection. However, I'd like the response from the server to be handled similar to streaming data - chunks will be shown on the same bubble. Currently, as chunks arrive, they are on separate bubbles.

I had configured with this: request='{"url": "ws://customapi.com", "websocket": true}'

I added stream=true (and even assigned simulation = true and 6 as well)

Is this possible? Or I should use the Handler? Apologies if this question has been raised already. Unfortunately I couldn't find anything.

Thanks