Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions lua/eca/sidebar.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1716,6 +1716,11 @@ function M:_add_message(role, content)
end
function M:_finalize_streaming_response()
if self._is_streaming then
local chat_id = self.mediator:id()
if chat_id then
self.mediator:send("chat/promptStop", { chatId = chat_id }, nil)
end

Logger.debug("DEBUG: Finalizing streaming response")
Logger.debug("DEBUG: Final buffer had " .. #(self._current_response_buffer or "") .. " chars")

Expand Down
Loading