ai对话优化知识库选择
This commit is contained in:
@@ -131,7 +131,6 @@ declare module 'shared/types' {
|
||||
DifyFileInfo,
|
||||
ChatPrepareData,
|
||||
CreateChatParam,
|
||||
PrepareChatParam,
|
||||
StopChatParam,
|
||||
CommentMessageParam,
|
||||
ChatListParam,
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
|
||||
// 清空已上传的文件
|
||||
|
||||
Reference in New Issue
Block a user