✨ Introducing The Forge (#1072)
The Forge allows anyone to easily create their own Typebot Block. Closes #380
This commit is contained in:
17
packages/forge/blocks/openai/index.ts
Normal file
17
packages/forge/blocks/openai/index.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
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'
|
||||
|
||||
export const openAIBlock = createBlock({
|
||||
id: 'openai' as const,
|
||||
name: 'OpenAI',
|
||||
tags: ['openai'],
|
||||
LightLogo: OpenAILightLogo,
|
||||
DarkLogo: OpenAIDarkLogo,
|
||||
auth,
|
||||
options: baseOptions,
|
||||
actions: [createChatCompletion, createSpeech],
|
||||
})
|
||||
Reference in New Issue
Block a user