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

@@ -88,6 +88,7 @@ export interface ChatPrepareData {
userId?: string
/** 用户类型false=来客true=员工) */
userType?: boolean
service?: string
}
// ==================== 请求参数类型(必传校验) ====================
@@ -106,24 +107,6 @@ export interface CreateChatParam {
title?: string
}
/**
* 准备流式对话参数
*/
export interface PrepareChatParam {
/** 对话ID必传 */
chatId: string
/** 用户问题(必传) */
query: string
/** 智能体ID必传 */
agentId: string
/** 用户类型(必传) */
userType: boolean
/** 用户ID */
userId?: string
/** 文件列表 */
files?: DifyFileInfo[]
}
/**
* 停止对话参数
*/