Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion integrations/google-ai/integration.definition.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down
2 changes: 1 addition & 1 deletion integrations/google-ai/src/actions/generate-content.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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:*",
Expand Down
6 changes: 5 additions & 1 deletion packages/cli/src/api/plugin-body.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ export const prepareCreatePluginBody = async (
conversation: {
tags: plugin.conversation?.tags ?? {},
},
message: {
tags: plugin.message?.tags ?? {},
},
configuration: plugin.configuration
? {
...plugin.configuration,
Expand Down Expand Up @@ -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,
}
Expand Down
21 changes: 20 additions & 1 deletion packages/sdk/src/integration/client/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<Res<client.Client['getOrCreateConversation']>>,
{
conversation: utils.Merge<
Awaited<Res<client.Client['getOrCreateConversation']>>['conversation'],
{
channel: TChannelName
tags: commonTypes.ToTags<keyof TIntegration['channels'][TChannelName]['conversation']['tags']>
}
>
}
>
}>

export type CreateConversation<TIntegration extends common.BaseIntegration> = <
ChannelName extends keyof TIntegration['channels'],
>(x: {
Expand Down Expand Up @@ -64,7 +83,7 @@ export type GetOrCreateConversation<TIntegration extends common.BaseIntegration>
discriminateByTags?: NoInfer<utils.Cast<TTags[], string[]>>
}
>
) => Promise<ConversationResponse<TIntegration, ChannelName>>
) => Promise<GetOrCreateConversationResponse<TIntegration, ChannelName>>

export type UpdateConversation<TIntegration extends common.BaseIntegration> = (
x: utils.Merge<
Expand Down
28 changes: 14 additions & 14 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading