Fix /tools-unregister

9c43999e4b3975455e4c73132412baf7df705eed

Cohee <18619528+Cohee1207@users.noreply.github.com>

1 files changed, +1 -1Ignore whitespace
public/scripts/tool-calling.js+1 -1
@@ -947,7 +947,7 @@ export class ToolManager {
947 enumProvider: toolsEnumProvider,947 enumProvider: toolsEnumProvider,
948 }),948 }),
949 ],949 ],
950 callback: async (name) => {950 callback: async (_, name) => {
951 if (typeof name !== 'string' || !name) {951 if (typeof name !== 'string' || !name) {
952 throw new Error('The unnamed argument must be a non-empty string.');952 throw new Error('The unnamed argument must be a non-empty string.');
953 }953 }