This commit is contained in:
Timothy Jaeryang Baek
2026-03-29 21:01:10 -05:00
parent 4777f4fa32
commit a06685a47b
8 changed files with 86 additions and 36 deletions
+4 -3
View File
@@ -375,7 +375,7 @@
return { toolServer, toolServerData, token };
};
const executeTool = async (data, cb) => {
const executeTool = async (data, cb, chatId) => {
const { toolServer, toolServerData, token } = resolveToolServer(data.server?.url);
console.log('executeTool', data, toolServer);
@@ -386,7 +386,8 @@
toolServer.url,
data?.name,
data?.params,
toolServerData
toolServerData,
chatId
);
console.log('executeToolServer', res);
@@ -485,7 +486,7 @@
executePythonAsWorker(data.id, data.code, cb, data.files || []);
} else if (type === 'execute:tool') {
console.log('execute:tool', data);
executeTool(data, cb);
executeTool(data, cb, event.chat_id);
} else if (type === 'request:chat:completion') {
console.log(data, $socket.id);
const { session_id, channel, form_data, model } = data;