fix: increase history max_tokens (#1609)

This commit is contained in:
yetone
2025-03-17 04:38:08 +08:00
committed by GitHub
parent e05312f83b
commit 63605a55a3
4 changed files with 19 additions and 19 deletions

View File

@@ -2458,12 +2458,12 @@ function Sidebar:create_input_container(opts)
if self.chat_history.memory then prompts_opts.memory = self.chat_history.memory.content end
if not summarize_memory or #history_messages < 8 then
if not summarize_memory or #history_messages < 12 then
cb(prompts_opts)
return
end
prompts_opts.history_messages = vim.list_slice(prompts_opts.history_messages, 5)
prompts_opts.history_messages = vim.list_slice(prompts_opts.history_messages, 7)
Llm.summarize_memory(self.code.bufnr, self.chat_history, function(memory)
if memory then prompts_opts.memory = memory.content end