feat: support customizing system_prompt in the configuration (#1527)

This commit is contained in:
yetone
2025-03-08 12:51:49 +08:00
committed by GitHub
parent d75094b815
commit 8344d3ee3d
2 changed files with 5 additions and 0 deletions

View File

@@ -128,6 +128,10 @@ function M.generate_prompts(opts)
local system_prompt = Path.prompts.render_mode(mode, template_opts)
if Config.system_prompt ~= nil and Config.system_prompt ~= "" and Config.system_prompt ~= "null" then
system_prompt = system_prompt .. "\n\n" .. Config.system_prompt
end
---@type AvanteLLMMessage[]
local messages = {}