【解决todo】AI Chat 增加清理 message

This commit is contained in:
cherishsince
2024-05-22 09:57:46 +08:00
parent d603f1edd0
commit 561d60bccd
3 changed files with 28 additions and 3 deletions

View File

@ -60,8 +60,14 @@ export const ChatMessageApi = {
})
},
// 发送 send 消息
// 删除消息
delete: async (id: string) => {
return await request.delete({ url: `/ai/chat/message/delete?id=${id}` })
},
// 删除消息 - 对话所有消息
deleteByConversationId: async (conversationId: string) => {
return await request.delete({ url: `/ai/chat/message/delete-by-conversation-id?conversationId=${conversationId}` })
}
}