deep-chat icon indicating copy to clipboard operation
deep-chat copied to clipboard

Question: how to send extract the command message in a stream chat model

Open BeamLiu opened this issue 11 months ago • 2 comments
trafficstars

hi there, it is a great component, it works fine with my product.

I have a usecase: The end user chat through the stream chat, I want the LLM to response the tool function call first, to drive the UI action, such as openCurrentDocument command, I will response the command in my vue3 fronend, but how to deliver the command json to my frontend? After that, the LLM will response "the document is opened" .

I have no idea how to simply use deep-chat to archive that (this is my prior choice), otherwise I need but another websocket channel by myself?

BeamLiu avatar Nov 22 '24 04:11 BeamLiu

Hey @BeamLiu. Forgive me but I don't seem to understand your use-case. Could you perhaps elaborate a little more with examples on what it is you are trying to achieve. Thanks!

OvidijusParsiunas avatar Nov 28 '24 14:11 OvidijusParsiunas

My fault, I think it is may not be a correct usage for SSE in my case, I used another webscoket to communite with server. The usecase is simple, I wrapped UI action as LLM tool together with the server side functions. But the UI action need to be sent as commands from server side to client to execute through SSE.

BeamLiu avatar Dec 06 '24 12:12 BeamLiu