diff --git a/common/util/mapping.go b/common/util/mapping.go index a752c47..860c0b7 100644 --- a/common/util/mapping.go +++ b/common/util/mapping.go @@ -160,6 +160,11 @@ func MergeSystemPrompt(messages map[string]any, prompt, skills string, requestMa msgJson := gjson.New(messages) + // 如果有 rounds,加前缀 + if msgJson.Get("rounds.0").Val() != nil { + systemPath = "rounds.0." + systemPath + } + existing := msgJson.Get(systemPath).String() if existing != "" { systemContent = existing + "\n" + systemContent