暂时屏蔽对话历史管理(数据库)

This commit is contained in:
Wenjie Zhang 2025-05-05 16:34:23 +08:00
parent 7b6a1b4458
commit 39bfc3d786

View File

@ -92,36 +92,36 @@ export const chatApi = {
*/ */
getTools: () => apiGet('/api/chat/tools', {}, true), getTools: () => apiGet('/api/chat/tools', {}, true),
/** // /**
* 获取对话历史 // * 获取对话历史
* @returns {Promise} - 对话历史列表 // * @returns {Promise} - 对话历史列表
*/ // */
getConversations: () => apiGet('/api/chat/conversations', {}, true), // getConversations: () => apiGet('/api/chat/conversations', {}, true),
/** // /**
* 获取特定对话 // * 获取特定对话
* @param {string} conversationId - 对话ID // * @param {string} conversationId - 对话ID
* @returns {Promise} - 对话详情 // * @returns {Promise} - 对话详情
*/ // */
getConversation: (conversationId) => // getConversation: (conversationId) =>
apiGet(`/api/chat/conversations/${conversationId}`, {}, true), // apiGet(`/api/chat/conversations/${conversationId}`, {}, true),
/** // /**
* 删除对话 // * 删除对话
* @param {string} conversationId - 对话ID // * @param {string} conversationId - 对话ID
* @returns {Promise} - 删除结果 // * @returns {Promise} - 删除结果
*/ // */
deleteConversation: (conversationId) => // deleteConversation: (conversationId) =>
apiDelete(`/api/chat/conversations/${conversationId}`, {}, true), // apiDelete(`/api/chat/conversations/${conversationId}`, {}, true),
/** // /**
* 更新对话标题 // * 更新对话标题
* @param {string} conversationId - 对话ID // * @param {string} conversationId - 对话ID
* @param {string} title - 新标题 // * @param {string} title - 新标题
* @returns {Promise} - 更新结果 // * @returns {Promise} - 更新结果
*/ // */
updateConversationTitle: (conversationId, title) => // updateConversationTitle: (conversationId, title) =>
apiPost(`/api/chat/conversations/${conversationId}/title`, { title }, {}, true), // apiPost(`/api/chat/conversations/${conversationId}/title`, { title }, {}, true),
} }
// 用户设置API // 用户设置API