Restore chat history
This commit is contained in:
parent
57e4f6ff54
commit
27c22bed6e
@ -24,8 +24,9 @@ function M.query(prompt, context)
|
||||
chat.set_context(context)
|
||||
chat.create_window()
|
||||
|
||||
-- Don't add the thinking message to conversation history
|
||||
local initial_content = "User: " .. prompt .. "\n\nAssistant: Thinking..."
|
||||
chat.update_content(initial_content, true)
|
||||
chat.update_content(initial_content, true, true) -- Add new parameter to indicate temporary content
|
||||
vim.cmd('redraw')
|
||||
|
||||
api.get_response(prompt, context, function(response, error)
|
||||
|
Loading…
x
Reference in New Issue
Block a user