anything-llm/server/utils/chats/commands/reset.js
2023-06-07 21:31:35 -07:00

18 lines
394 B
JavaScript

const { WorkspaceChats } = require("../../../models/workspaceChats");
async function resetMemory(workspace, _message, msgUUID) {
await WorkspaceChats.markHistoryInvalid(workspace.id);
return {
uuid: msgUUID,
type: "textResponse",
textResponse: "Workspace chat memory was reset!",
sources: [],
close: true,
error: false,
};
}
module.exports = {
resetMemory,
};