refertor:使用antdX重构dify聊天渲染组件,到处引用文件

This commit is contained in:
PingChuan
2025-12-05 23:36:12 +08:00
parent 5f9ce2fe9f
commit 7a2a481f44
11 changed files with 469 additions and 91 deletions
+2 -1
View File
@@ -227,7 +227,7 @@ export default function Chat() {
message_files: item.message_files?.filter((file: any) => file.belongs_to === 'user') || [],
});
// 添加AI回答
// 添加AI回答(包含检索资源)
newChatList.push({
id: item.id,
content: item.answer,
@@ -235,6 +235,7 @@ export default function Chat() {
feedback: item.feedback,
isAnswer: true,
message_files: item.message_files?.filter((file: any) => file.belongs_to === 'assistant') || [],
retriever_resources: item.retriever_resources || [],
});
});