Skip to content

Commit 23851dc

Browse files
committed
hotfix Conversation tools
1 parent 64f9c44 commit 23851dc

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

packages/core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@smythos/sre",
3-
"version": "1.5.67",
3+
"version": "1.5.68",
44
"description": "Smyth Runtime Environment",
55
"author": "Alaa-eddine KADDOURI",
66
"license": "MIT",

packages/core/src/helpers/Conversation.helper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ export class Conversation extends EventEmitter {
282282
const reqMethods = this._reqMethods;
283283
const toolsConfig = this._toolsConfig;
284284
//deduplicate tools
285-
toolsConfig.tools = toolsConfig.tools.filter((tool, index, self) => self.findIndex((t) => t.name === tool.name) === index);
285+
toolsConfig.tools = toolsConfig.tools.filter((tool, index, self) => self.findIndex((t) => t.function.name === tool.function.name) === index);
286286
const endpoints = this._endpoints;
287287
const baseUrl = this._baseUrl;
288288
const message_id = 'msg_' + randomUUID();

packages/sdk/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@smythos/sdk",
3-
"version": "1.1.9",
3+
"version": "1.1.10",
44
"description": "SRE SDK",
55
"keywords": [
66
"smythos",

0 commit comments

Comments
 (0)