mirror of
https://github.com/Mintplex-Labs/anything-llm.git
synced 2024-09-19 19:10:16 +02:00
17 lines
391 B
JavaScript
17 lines
391 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
|
|
} |