2
0

Add "Generate variables" actions in AI blocks

Closes #1586
This commit is contained in:
Baptiste Arnaud
2024-06-18 12:13:00 +02:00
parent bec9cb68ca
commit 76fcf7ee93
25 changed files with 860 additions and 165 deletions

View File

@@ -5,6 +5,7 @@ import { createBlock } from '@typebot.io/forge'
import { auth } from './auth'
import { baseOptions } from './baseOptions'
import { askAssistant } from './actions/askAssistant'
import { generateVariables } from './actions/generateVariables'
export const openAIBlock = createBlock({
id: 'openai' as const,
@@ -14,6 +15,11 @@ export const openAIBlock = createBlock({
DarkLogo: OpenAIDarkLogo,
auth,
options: baseOptions,
actions: [createChatCompletion, askAssistant, createSpeech],
actions: [
createChatCompletion,
askAssistant,
generateVariables,
createSpeech,
],
docsUrl: 'https://docs.typebot.io/forge/blocks/openai',
})