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

@@ -4,7 +4,7 @@ import type {
TbChat,
TbChatMessage,
CreateChatParam,
PrepareChatParam,
ChatPrepareData,
StopChatParam,
CommentMessageParam,
ChatListParam,
@@ -72,7 +72,7 @@ export const aiChatAPI = {
* 准备流式对话会话
* @param param agentId、chatId、query、userId 必传
*/
prepareChatMessageSession(param: PrepareChatParam): Promise<ResultDomain<string>> {
prepareChatMessageSession(param: ChatPrepareData): Promise<ResultDomain<string>> {
return request<string>({ url: `${this.baseUrl}/stream/prepare`, method: 'POST', data: param })
},

View File

@@ -16,7 +16,7 @@ import type {
TbChat,
TbChatMessage,
CreateChatParam,
PrepareChatParam,
ChatPrepareData,
StopChatParam,
CommentMessageParam,
ChatListParam,