Skip to content

Commit 041465a

Browse files
committed
Insert content to history properly on non-streamed response
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
1 parent a58ddc6 commit 041465a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lua/CopilotChat/copilot.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -623,7 +623,7 @@ function Copilot:ask(prompt, opts)
623623
end
624624

625625
table.insert(self.history, {
626-
content = full_response,
626+
content = content,
627627
role = 'assistant',
628628
})
629629
return

0 commit comments

Comments
 (0)