Revert "fix: preserve agent system prompt for greetings"

This reverts commit b22303cec8.
This commit is contained in:
lyingbug
2026-06-04 17:39:10 +08:00
parent b22303cec8
commit 4369d156e1
5 changed files with 3 additions and 54 deletions
-4
View File
@@ -62,9 +62,6 @@ type PipelineRequest struct {
// IntentPromptOverrides holds agent-level intent prompt overrides for the
// query-understanding stage. Empty values fall back to tenant/global defaults.
IntentPromptOverrides map[string]string `json:"-"`
// AgentSystemPromptApplied is true when SummaryConfig.Prompt was supplied
// by a custom agent. Global intent prompts must not replace that prompt.
AgentSystemPromptApplied bool `json:"-"`
// Misc request-scoped config
TenantID uint64 `json:"-"`
@@ -229,7 +226,6 @@ func (c *ChatManage) Clone() *ChatManage {
WebFetchTopN: c.WebFetchTopN,
Language: c.Language,
IntentPromptOverrides: maps.Clone(c.IntentPromptOverrides),
AgentSystemPromptApplied: c.AgentSystemPromptApplied,
},
PipelineState: PipelineState{
RewriteQuery: c.RewriteQuery,