chat-ui-energy / src /lib /migrations /routines /07-reset-tools-in-settings.ts
nsarrazin's picture
nsarrazin HF Staff
feat(models): Llama 3.1 support (#1355)
d947276 unverified
raw
history blame
439 Bytes
import type { Migration } from ".";
import { collections } from "$lib/server/database";
import { ObjectId } from "mongodb";
const resetTools: Migration = {
_id: new ObjectId("000000000007"),
name: "Reset tools to empty",
up: async () => {
const { settings } = collections;
await settings.updateMany({}, { $set: { tools: {} } });
return true;
},
runEveryTime: false,
runForHuggingChat: "only",
};
export default resetTools;