diff --git a/yudao-module-llm/yudao-module-llm-biz/src/main/java/cn/iocoder/yudao/module/llm/service/conversation/ConversationServiceImpl.java b/yudao-module-llm/yudao-module-llm-biz/src/main/java/cn/iocoder/yudao/module/llm/service/conversation/ConversationServiceImpl.java index e55cc112a..57b019556 100644 --- a/yudao-module-llm/yudao-module-llm-biz/src/main/java/cn/iocoder/yudao/module/llm/service/conversation/ConversationServiceImpl.java +++ b/yudao-module-llm/yudao-module-llm-biz/src/main/java/cn/iocoder/yudao/module/llm/service/conversation/ConversationServiceImpl.java @@ -603,6 +603,7 @@ public class ConversationServiceImpl implements ConversationService { // 提取页面内容 JSONObject content = firstResult.getJSONObject(0); String pageContent = content.getString("page_content"); + pageContent = pageContent.replace("\n", "").replace("\r", ""); log.info("{} 内容: {}", "[KnowledgeBase]", JSON.toJSONString(pageContent)); JSONObject metadata = content.getJSONObject("metadata");