ai对话优化知识库选择

This commit is contained in:
2025-12-29 18:40:26 +08:00
parent a33720b9f6
commit 4b6cb726d2
14 changed files with 249 additions and 81 deletions

View File

@@ -131,7 +131,6 @@ declare module 'shared/types' {
DifyFileInfo,
ChatPrepareData,
CreateChatParam,
PrepareChatParam,
StopChatParam,
CommentMessageParam,
ChatListParam,

View File

@@ -275,7 +275,7 @@ import type {
TbChat,
TbChatMessage,
TbAgent,
PrepareChatParam,
ChatPrepareData,
SSEMessageData,
DifyFileInfo,
TbSysFileDTO
@@ -479,13 +479,14 @@ const sendMessage = async () => {
}
// 准备流式对话参数
const prepareParam: PrepareChatParam = {
const prepareParam: ChatPrepareData = {
chatId: currentChatId.value!,
query: query,
agentId: agentId,
userType: userType.value,
userId: userId.value,
files: uploadedFiles.value.length > 0 ? uploadedFiles.value : undefined
files: uploadedFiles.value.length > 0 ? uploadedFiles.value : undefined,
service: "workcase"
}
// 清空已上传的文件