deep-chat
deep-chat copied to clipboard
Question: how to send extract the command message in a stream chat model
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?
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!
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.