Skip to content

Commit 6172e15

Browse files
committed
fix: sys_prompt render for Prompt commands (resolve: #162)
1 parent 13c8c3c commit 6172e15

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/gp/init.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3138,7 +3138,7 @@ M.Prompt = function(params, target, agent, template, prompt, whisper, callback)
31383138
local filetype = M._H.get_filetype(buf)
31393139
local filename = vim.api.nvim_buf_get_name(buf)
31403140

3141-
local sys_prompt = M.template_render(agent.system_template, command, selection, filetype, filename)
3141+
local sys_prompt = M.template_render(agent.system_prompt, command, selection, filetype, filename)
31423142
sys_prompt = sys_prompt or ""
31433143
table.insert(messages, { role = "system", content = sys_prompt })
31443144

0 commit comments

Comments
 (0)