Skip to content

Commit

Permalink
Insert content to history properly on non-streamed response
Browse files Browse the repository at this point in the history
Signed-off-by: Tomas Slusny <[email protected]>
  • Loading branch information
deathbeam committed Nov 2, 2024
1 parent a58ddc6 commit 041465a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/CopilotChat/copilot.lua
Original file line number Diff line number Diff line change
Expand Up @@ -623,7 +623,7 @@ function Copilot:ask(prompt, opts)
end

table.insert(self.history, {
content = full_response,
content = content,
role = 'assistant',
})
return
Expand Down

0 comments on commit 041465a

Please sign in to comment.