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/charts/integration.definition.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { actionDefinitions } from 'src/definitions/actions'
export default new IntegrationDefinition({
name: 'charts',
description: 'Easily generate a variety of charts, including line, bar, pie, and scatter plots, etc.',
version: '0.2.4',
version: '0.2.5',
readme: 'hub.md',
icon: 'icon.svg',
actions: actionDefinitions,
Expand Down
1 change: 1 addition & 0 deletions integrations/charts/src/actions/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ export const buildChart = async (props: BuildChartProps) => {
content: response.data,
index: false,
accessPolicies: ['public_content'],
publicContentImmediatelyAccessible: true,
})

return file.url!
Expand Down
5 changes: 5 additions & 0 deletions integrations/mistral-ai/hub.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Mistral AI Integration

This integration allows your bot to choose from a curated list of [Mistral AI Models](https://docs.mistral.ai/getting-started/models) as the LLM of your choice for a node, workflow, or skill in your bot.

Usage is charged to the AI Spend of your workspace in Botpress Cloud at the [same pricing](https://mistral.ai/pricing#api-pricing) (at cost) as directly with Mistral.
19 changes: 19 additions & 0 deletions integrations/mistral-ai/icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
26 changes: 26 additions & 0 deletions integrations/mistral-ai/integration.definition.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import { IntegrationDefinition, z } from '@botpress/sdk'
import { ModelId } from 'src/schemas'
import llm from './bp_modules/llm'

export default new IntegrationDefinition({
name: 'mistral-ai',
title: 'Mistral AI',
description: 'Access a curated list of Mistral AI models to set as your chosen LLM.',
version: '0.1.0',
readme: 'hub.md',
icon: 'icon.svg',
entities: {
modelRef: {
schema: z.object({
id: ModelId,
}),
},
},
secrets: {
MISTRAL_API_KEY: {
description: 'Mistral AI API key',
},
},
}).extend(llm, ({ entities }) => ({
entities: { modelRef: entities.modelRef },
}))
23 changes: 23 additions & 0 deletions integrations/mistral-ai/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"name": "@botpresshub/mistral-ai",
"scripts": {
"build": "bp add -y && bp build",
"check:type": "tsc --noEmit",
"check:bplint": "bp lint"
},
"private": true,
"dependencies": {
"@botpress/client": "workspace:*",
"@botpress/common": "workspace:*",
"@botpress/sdk": "workspace:*",
"@mistralai/mistralai": "^1.11.0"
},
"devDependencies": {
"@botpress/cli": "workspace:*",
"@botpress/sdk": "workspace:*",
"@botpresshub/llm": "workspace:*"
},
"bpDependencies": {
"llm": "../../interfaces/llm"
}
}
Loading
Loading