Files
bot/packages/forge/blocks/mistral/auth.ts
Baptiste Arnaud b68f16f4f7 Add Mistral AI block
Closes #1179
2024-01-29 09:37:19 +01:00

16 lines
428 B
TypeScript

import { option, AuthDefinition } from '@typebot.io/forge'
export const auth = {
type: 'encryptedCredentials',
name: 'Mistral account',
schema: option.object({
apiKey: option.string.layout({
label: 'API key',
isRequired: true,
inputType: 'password',
helperText:
'You can generate an API key [here](https://console.mistral.ai/user/api-keys/).',
}),
}),
} satisfies AuthDefinition