mirror of
https://github.com/Mintplex-Labs/anything-llm
synced 2026-04-25 17:15:37 +02:00
inital commit ⚡
This commit is contained in:
17
server/utils/chats/commands/reset.js
Normal file
17
server/utils/chats/commands/reset.js
Normal file
@@ -0,0 +1,17 @@
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user