Преглед на файлове

Merge remote-tracking branch 'origin/rag/3.1' into debug

Roc преди 1 седмица
родител
ревизия
ebd5368b42
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      controllers/llm/report.go

+ 1 - 1
controllers/llm/report.go

@@ -147,7 +147,7 @@ func (c *RagEtaReportController) ArticleDetail() {
 			content = reportInfo.Content
 			// 如果是rai报告,则使用纯文本的报告内容
 			if reportInfo.RaiReportId > 0 {
-				content = strings.ReplaceAll(item.TextContent, "\\n", "<br />")
+				content = strings.ReplaceAll(item.TextContent, "\n", "<br />")
 			}
 		} else {
 			// 章节报告