Skip to content

Commit

Permalink
fix: sys_prompt render for Prompt commands (resolve: #162)
Browse files Browse the repository at this point in the history
  • Loading branch information
Robitx committed Jul 22, 2024
1 parent 13c8c3c commit 6172e15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/gp/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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 })

Expand Down

0 comments on commit 6172e15

Please sign in to comment.