Fix system prompt not being used when flag is false

This commit is contained in:
ugurtafrali
2026-04-14 20:43:04 +03:00
committed by lyingbug
parent 9bb4a12562
commit 38077d6ccd
2 changed files with 78 additions and 1 deletions
@@ -110,7 +110,7 @@ func (s *agentService) CreateAgentEngine(
// 4. Resolve system prompt template
systemPromptTemplate := ""
if config.UseCustomSystemPrompt {
if config.UseCustomSystemPrompt || config.SystemPrompt != "" {
systemPromptTemplate = config.ResolveSystemPrompt(config.WebSearchEnabled)
}