From 6172e15d859baf842e4ba4dbfb57f06e6b9878d8 Mon Sep 17 00:00:00 2001 From: Tibor Schmidt Date: Mon, 22 Jul 2024 19:08:22 +0200 Subject: [PATCH] fix: sys_prompt render for Prompt commands (resolve: #162) --- lua/gp/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/gp/init.lua b/lua/gp/init.lua index f74c7d8..5a93107 100644 --- a/lua/gp/init.lua +++ b/lua/gp/init.lua @@ -3138,7 +3138,7 @@ M.Prompt = function(params, target, agent, template, prompt, whisper, callback) local filetype = M._H.get_filetype(buf) local filename = vim.api.nvim_buf_get_name(buf) - local sys_prompt = M.template_render(agent.system_template, command, selection, filetype, filename) + local sys_prompt = M.template_render(agent.system_prompt, command, selection, filetype, filename) sys_prompt = sys_prompt or "" table.insert(messages, { role = "system", content = sys_prompt })