Closes #853 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Introduced the ElevenLabs block for Typebot, enabling text to speech conversion using ElevenLabs API. - Added live tutorial videos for creating ElevenLabs and Telegram blocks. - Added a `docsUrl` for the OpenAI block to improve accessibility to documentation. - **Documentation** - New guides and integration details for ElevenLabs and Telegram blocks. - **Style** - Added ElevenLabs logos for light and dark themes. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
20 lines
676 B
TypeScript
20 lines
676 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'
|
|
|
|
export const openAIBlock = createBlock({
|
|
id: 'openai' as const,
|
|
name: 'OpenAI',
|
|
tags: ['openai'],
|
|
LightLogo: OpenAILightLogo,
|
|
DarkLogo: OpenAIDarkLogo,
|
|
auth,
|
|
options: baseOptions,
|
|
actions: [createChatCompletion, askAssistant, createSpeech],
|
|
docsUrl: 'https://docs.typebot.io/forge/blocks/openai',
|
|
})
|