From b6314301cd1b5c23dea4b4d662c7a25c016a8b4c Mon Sep 17 00:00:00 2001 From: Gui Oba Date: Tue, 26 May 2026 10:06:49 -0400 Subject: [PATCH 1/2] fix(cognitive): populate botId from x-bot-id header in getExtendedClient (#15215) Co-authored-by: Claude Sonnet 4.6 --- packages/cognitive/src/bp-client.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/cognitive/src/bp-client.ts b/packages/cognitive/src/bp-client.ts index 9c446145474..699a898283f 100644 --- a/packages/cognitive/src/bp-client.ts +++ b/packages/cognitive/src/bp-client.ts @@ -50,6 +50,7 @@ export const getExtendedClient = (_client: unknown): ExtendedClient => { return { ...client, + botId: client.config.headers['x-bot-id'] as string, axios: (client as any).axiosInstance as AxiosInstance, clone, abortable: (signal: AbortSignal) => { From 1c54a1f78616796ca09c29a0a10c05943f911549 Mon Sep 17 00:00:00 2001 From: Gui Oba Date: Tue, 26 May 2026 11:16:47 -0400 Subject: [PATCH 2/2] chore(cognitive): bump package version (#15217) --- packages/cognitive/package.json | 2 +- packages/llmz/package.json | 2 +- packages/zai/package.json | 2 +- plugins/conversation-insights/package.json | 2 +- pnpm-lock.yaml | 6 +++--- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/packages/cognitive/package.json b/packages/cognitive/package.json index f317370db83..d90befc53df 100644 --- a/packages/cognitive/package.json +++ b/packages/cognitive/package.json @@ -1,6 +1,6 @@ { "name": "@botpress/cognitive", - "version": "0.5.4", + "version": "0.5.5", "description": "Wrapper around the Botpress Client to call LLMs", "main": "./dist/index.cjs", "module": "./dist/index.mjs", diff --git a/packages/llmz/package.json b/packages/llmz/package.json index 6c899c20de3..20984102072 100644 --- a/packages/llmz/package.json +++ b/packages/llmz/package.json @@ -72,7 +72,7 @@ }, "peerDependencies": { "@botpress/client": "1.46.0", - "@botpress/cognitive": "0.5.4", + "@botpress/cognitive": "0.5.5", "@bpinternal/thicktoken": "^2.0.0", "@bpinternal/zui": "^2.1.1" }, diff --git a/packages/zai/package.json b/packages/zai/package.json index c1ecaec5e16..8ad8144288c 100644 --- a/packages/zai/package.json +++ b/packages/zai/package.json @@ -32,7 +32,7 @@ "author": "", "license": "ISC", "dependencies": { - "@botpress/cognitive": "0.5.4", + "@botpress/cognitive": "0.5.5", "json5": "^2.2.3", "jsonrepair": "^3.10.0", "lodash-es": "^4.17.21", diff --git a/plugins/conversation-insights/package.json b/plugins/conversation-insights/package.json index d48070ef299..9edecc834bd 100644 --- a/plugins/conversation-insights/package.json +++ b/plugins/conversation-insights/package.json @@ -7,7 +7,7 @@ }, "private": true, "dependencies": { - "@botpress/cognitive": "0.5.4", + "@botpress/cognitive": "0.5.5", "@botpress/sdk": "workspace:*", "browser-or-node": "^2.1.1", "jsonrepair": "^3.10.0" diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 7b0d1d5718f..7edaa12b03e 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -3129,7 +3129,7 @@ importers: specifier: 1.46.0 version: link:../client '@botpress/cognitive': - specifier: 0.5.4 + specifier: 0.5.5 version: link:../cognitive '@bpinternal/thicktoken': specifier: ^2.0.0 @@ -3315,7 +3315,7 @@ importers: packages/zai: dependencies: '@botpress/cognitive': - specifier: 0.5.4 + specifier: 0.5.5 version: link:../cognitive '@bpinternal/thicktoken': specifier: ^1.0.0 @@ -3428,7 +3428,7 @@ importers: plugins/conversation-insights: dependencies: '@botpress/cognitive': - specifier: 0.5.4 + specifier: 0.5.5 version: link:../../packages/cognitive '@botpress/sdk': specifier: workspace:*