refactor(files): 优化文件处理和任务服务逻辑
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user