refactor(files): 优化文件处理和任务服务逻辑

This commit is contained in:
2026-06-18 13:59:59 +08:00
parent 7fa7a2e8ea
commit d5b55b5bd6

View File

@@ -160,6 +160,11 @@ func MergeSystemPrompt(messages map[string]any, prompt, skills string, requestMa
msgJson := gjson.New(messages) msgJson := gjson.New(messages)
// 如果有 rounds加前缀
if msgJson.Get("rounds.0").Val() != nil {
systemPath = "rounds.0." + systemPath
}
existing := msgJson.Get(systemPath).String() existing := msgJson.Get(systemPath).String()
if existing != "" { if existing != "" {
systemContent = existing + "\n" + systemContent systemContent = existing + "\n" + systemContent