Skip to content

Commit 0ce6c28

Browse files
authored
Merge pull request #63 from Shakey-Bridge-Software/feature/prompt-stop
feat: send chat/promptStop to server on EcaStopResponse
2 parents 5ac15c9 + bcf9507 commit 0ce6c28

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

lua/eca/sidebar.lua

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1716,6 +1716,11 @@ function M:_add_message(role, content)
17161716
end
17171717
function M:_finalize_streaming_response()
17181718
if self._is_streaming then
1719+
local chat_id = self.mediator:id()
1720+
if chat_id then
1721+
self.mediator:send("chat/promptStop", { chatId = chat_id }, nil)
1722+
end
1723+
17191724
Logger.debug("DEBUG: Finalizing streaming response")
17201725
Logger.debug("DEBUG: Final buffer had " .. #(self._current_response_buffer or "") .. " chars")
17211726

0 commit comments

Comments
 (0)