Skip to content

Commit

Permalink
Add TODO comment
Browse files Browse the repository at this point in the history
  • Loading branch information
pjlast committed Jul 27, 2023
1 parent 7215bb4 commit 37dc202
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lua/sg/cody/commands.lua
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,11 @@ commands.do_task = function(bufnr, start_line, end_line, message)
local lines = {}
for _, line in ipairs(vim.split(completed, "\n")) do
-- This is to trim the rambling at the end that LLMs tend to do.
-- TODO: This should be handled in the agent/LSP/whatever doing
-- the GQL request, so that the response can be cut short
-- without having to wait for the stream to complete. No sense
-- waiting for text to complete that you're going to throw
-- away.
if line == "```" then
break
end
Expand Down

0 comments on commit 37dc202

Please sign in to comment.