Skip to content

Commit

Permalink
fix #381: Adhere to system prompts in /prompts
Browse files Browse the repository at this point in the history
  • Loading branch information
gptlang committed Aug 17, 2024
1 parent d459297 commit 4b9ca95
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lua/CopilotChat/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ local function update_prompts(prompt, system_prompt)
if out and string.match(out, [[/[%w_]+]]) then
try_again = true
end
system_prompt = found.system_prompt or system_prompt
return out
elseif found.kind == 'system' then
system_prompt = found.prompt
Expand Down

0 comments on commit 4b9ca95

Please sign in to comment.