From 5aec0ba48bb0342c116662aafb6fe58c1cf9d44a Mon Sep 17 00:00:00 2001 From: yetone Date: Mon, 23 Sep 2024 19:09:04 +0800 Subject: [PATCH] fix: place the project context and memory context at the forefront (#619) --- lua/avante/llm.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/avante/llm.lua b/lua/avante/llm.lua index 833f36b..434104d 100644 --- a/lua/avante/llm.lua +++ b/lua/avante/llm.lua @@ -76,9 +76,9 @@ M.stream = function(opts) local user_prompts = vim .iter({ - Path.prompts.render_file("_context.avanterules", template_opts), Path.prompts.render_file("_project.avanterules", template_opts), Path.prompts.render_file("_memory.avanterules", template_opts), + Path.prompts.render_file("_context.avanterules", template_opts), Path.prompts.render_mode(mode, template_opts), }) :filter(function(k) return k ~= "" end)