2
0
Files
bot/packages/forge/blocks/openai/index.ts
2024-08-20 10:52:30 +02:00

28 lines
873 B
TypeScript

import { OpenAILightLogo, OpenAIDarkLogo } from './logo'
import { createChatCompletion } from './actions/createChatCompletion'
import { createSpeech } from './actions/createSpeech'
import { createBlock } from '@typebot.io/forge'
import { auth } from './auth'
import { baseOptions } from './baseOptions'
import { askAssistant } from './actions/askAssistant'
import { generateVariables } from './actions/generateVariables'
import { createTranscription } from './actions/createTranscription'
export const openAIBlock = createBlock({
id: 'openai' as const,
name: 'OpenAI',
tags: ['openai'],
LightLogo: OpenAILightLogo,
DarkLogo: OpenAIDarkLogo,
auth,
options: baseOptions,
actions: [
createChatCompletion,
askAssistant,
generateVariables,
createSpeech,
createTranscription,
],
docsUrl: 'https://docs.typebot.io/forge/blocks/openai',
})