From e91c9517b87a9a7a5ef3f6de7f2ce848fa9bfc78 Mon Sep 17 00:00:00 2001 From: Mathieu Faucher <99497774+Math-Fauch@users.noreply.github.com> Date: Wed, 11 Mar 2026 16:39:10 -0400 Subject: [PATCH 1/2] fix(interations/google-ai): use minimal reasoning for 2.5 pro (#15004) --- integrations/google-ai/integration.definition.ts | 2 +- integrations/google-ai/src/actions/generate-content.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/integrations/google-ai/integration.definition.ts b/integrations/google-ai/integration.definition.ts index 19239b9f294..9a3ffe9958a 100644 --- a/integrations/google-ai/integration.definition.ts +++ b/integrations/google-ai/integration.definition.ts @@ -6,7 +6,7 @@ export default new IntegrationDefinition({ name: 'google-ai', title: 'Google AI', description: 'Gain access to Gemini models for content generation, chat responses, and advanced language tasks.', - version: '7.0.2', + version: '7.0.3', readme: 'hub.md', icon: 'icon.svg', entities: { diff --git a/integrations/google-ai/src/actions/generate-content.ts b/integrations/google-ai/src/actions/generate-content.ts index c6a43c2e8e9..a4c39c94b44 100644 --- a/integrations/google-ai/src/actions/generate-content.ts +++ b/integrations/google-ai/src/actions/generate-content.ts @@ -127,7 +127,7 @@ async function buildGenerateContentRequest( } let defaultReasoningEffort: ReasoningEffort = 'none' - if (modelId === 'gemini-3-pro') { + if (modelId === 'gemini-3-pro' || modelId === 'gemini-2.5-pro') { // Gemini 3 Pro doesn't support disabling reasoning, so we use the lowest reasoning effort by default. defaultReasoningEffort = 'low' } From 6dd9c121d11cbdbd8353d02dacd972f7de5a1c5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Levasseur?= Date: Wed, 11 Mar 2026 19:20:30 -0400 Subject: [PATCH 2/2] feat(cli): allow setting plugin message tags (#15005) --- package.json | 2 +- packages/cli/src/api/plugin-body.ts | 6 ++++- packages/sdk/src/integration/client/types.ts | 21 ++++++++++++++- pnpm-lock.yaml | 28 ++++++++++---------- 4 files changed, 40 insertions(+), 17 deletions(-) diff --git a/package.json b/package.json index 784e0cbdd84..b290ca2bbdc 100644 --- a/package.json +++ b/package.json @@ -32,7 +32,7 @@ }, "devDependencies": { "@aws-sdk/client-dynamodb": "^3.564.0", - "@botpress/api": "1.73.4", + "@botpress/api": "1.76.0", "@botpress/cli": "workspace:*", "@botpress/client": "workspace:*", "@botpress/sdk": "workspace:*", diff --git a/packages/cli/src/api/plugin-body.ts b/packages/cli/src/api/plugin-body.ts index 788218c91a7..36e48ae6e8a 100644 --- a/packages/cli/src/api/plugin-body.ts +++ b/packages/cli/src/api/plugin-body.ts @@ -16,6 +16,9 @@ export const prepareCreatePluginBody = async ( conversation: { tags: plugin.conversation?.tags ?? {}, }, + message: { + tags: plugin.message?.tags ?? {}, + }, configuration: plugin.configuration ? { ...plugin.configuration, @@ -90,12 +93,13 @@ export const prepareUpdatePluginBody = ( ), } + // TODO: set null to conversation, user and message tags that are removed + return { ...localPlugin, actions, events, states, - user: localPlugin.user, // TODO: allow deleting user tags with null attributes, dependencies, } diff --git a/packages/sdk/src/integration/client/types.ts b/packages/sdk/src/integration/client/types.ts index 85c32d0e96c..37b2a81258d 100644 --- a/packages/sdk/src/integration/client/types.ts +++ b/packages/sdk/src/integration/client/types.ts @@ -29,6 +29,25 @@ type ConversationResponse< } }> +// TODO: rm dupplicated code with type above +type GetOrCreateConversationResponse< + TIntegration extends common.BaseIntegration, + ChannelName extends keyof TIntegration['channels'] = keyof TIntegration['channels'], +> = utils.ValueOf<{ + [TChannelName in ChannelName]: utils.Merge< + Awaited>, + { + conversation: utils.Merge< + Awaited>['conversation'], + { + channel: TChannelName + tags: commonTypes.ToTags + } + > + } + > +}> + export type CreateConversation = < ChannelName extends keyof TIntegration['channels'], >(x: { @@ -64,7 +83,7 @@ export type GetOrCreateConversation discriminateByTags?: NoInfer> } > -) => Promise> +) => Promise> export type UpdateConversation = ( x: utils.Merge< diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index ba5f64f7d14..3bb08c2db3e 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -17,8 +17,8 @@ importers: specifier: ^3.564.0 version: 3.709.0 '@botpress/api': - specifier: 1.73.4 - version: 1.73.4 + specifier: 1.76.0 + version: 1.76.0 '@botpress/cli': specifier: workspace:* version: link:packages/cli @@ -679,7 +679,7 @@ importers: version: link:../../packages/sdk openai: specifier: ^5.12.1 - version: 5.12.1(ws@8.18.2)(zod@3.24.2) + version: 5.12.1(ws@8.19.0)(zod@3.24.2) devDependencies: '@botpress/cli': specifier: workspace:* @@ -929,7 +929,7 @@ importers: version: link:../../packages/sdk openai: specifier: ^5.12.1 - version: 5.12.1(ws@8.18.2)(zod@3.24.2) + version: 5.12.1(ws@8.19.0)(zod@3.24.2) devDependencies: '@botpress/cli': specifier: workspace:* @@ -1176,7 +1176,7 @@ importers: version: link:../../packages/sdk openai: specifier: ^5.12.1 - version: 5.12.1(ws@8.18.2)(zod@3.24.2) + version: 5.12.1(ws@8.19.0)(zod@3.24.2) devDependencies: '@botpress/cli': specifier: workspace:* @@ -1586,7 +1586,7 @@ importers: version: link:../../packages/sdk openai: specifier: ^6.9.0 - version: 6.9.0(ws@8.18.2) + version: 6.9.0(ws@8.19.0) devDependencies: '@botpress/cli': specifier: workspace:* @@ -2793,7 +2793,7 @@ importers: version: 15.0.1 openai: specifier: ^6.9.0 - version: 6.9.0(ws@8.18.2) + version: 6.9.0(ws@8.19.0) posthog-node: specifier: 5.14.1 version: 5.14.1 @@ -4007,8 +4007,8 @@ packages: '@bcoe/v8-coverage@0.2.3': resolution: {integrity: sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==} - '@botpress/api@1.73.4': - resolution: {integrity: sha512-pMXnEVyNfqwPBibccS/8t8s6Orzq/FSYEdYe9ukRrJLl7hWo60hClpvb0cAldh6RnAO+y/3l6JCQyHk0F9wjpg==} + '@botpress/api@1.76.0': + resolution: {integrity: sha512-SRKVM0ak9gJGB6TOlraMx5pLQS8Cm58xwBPOiilmuNzB9Cab1hpSJuK4F4ErDOeL2fFEcXAa01/92AA0t/JRmA==} '@bpinternal/const@0.1.0': resolution: {integrity: sha512-iIQg9oYYXOt+LSK34oNhJVQTcgRdtLmLZirEUaE+R9hnmbKONA5reR2kTewxZmekGyxej+5RtDK9xrC/0hmeAw==} @@ -13251,7 +13251,7 @@ snapshots: '@bcoe/v8-coverage@0.2.3': {} - '@botpress/api@1.73.4': + '@botpress/api@1.76.0': dependencies: '@bpinternal/opapi': 1.0.0(openapi-types@12.1.3) transitivePeerDependencies: @@ -20532,14 +20532,14 @@ snapshots: is-inside-container: 1.0.0 wsl-utils: 0.1.0 - openai@5.12.1(ws@8.18.2)(zod@3.24.2): + openai@5.12.1(ws@8.19.0)(zod@3.24.2): optionalDependencies: - ws: 8.18.2 + ws: 8.19.0 zod: 3.24.2 - openai@6.9.0(ws@8.18.2): + openai@6.9.0(ws@8.19.0): optionalDependencies: - ws: 8.18.2 + ws: 8.19.0 openapi-types@12.1.3: {}