浏览代码

修改提示对话

kobe6258 4 周之前
父节点
当前提交
d9ca406809
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      utils/llm/eta_llm/eta_llm_client.go

+ 1 - 1
utils/llm/eta_llm/eta_llm_client.go

@@ -111,7 +111,7 @@ func (ds *ETALLMClient) KnowledgeBaseChat(query string, KnowledgeBaseName string
 			continue
 			continue
 		}
 		}
 		ChatHistory = append(ChatHistory, eta_llm_http.HistoryContent{
 		ChatHistory = append(ChatHistory, eta_llm_http.HistoryContent{
-			Content: historyItem.Content,
+			Content: fmt.Sprintf("【历史对话】 %s", historyItem.Content),
 			Role:    historyItem.Role,
 			Role:    historyItem.Role,
 		})
 		})
 	}
 	}