2
0

♻️ Include forged blocks schema in typebot schema

Closes #1364
This commit is contained in:
Baptiste Arnaud
2024-03-18 16:09:19 +01:00
parent 26a9282c20
commit ed5096e2b6
93 changed files with 8599 additions and 4965 deletions

View File

@ -16,14 +16,14 @@ export const createChatCompletion = createAction({
}),
turnableInto: [
{
blockType: 'openai',
blockId: 'openai',
},
{
blockType: 'open-router',
blockId: 'open-router',
},
{ blockType: 'mistral' },
{ blockId: 'mistral' },
{
blockType: 'anthropic',
blockId: 'anthropic',
transform: (options) => ({
...options,
action: 'Create Chat Message',

View File

@ -3,7 +3,7 @@ import { TogetherAiLogo } from './logo'
import { auth } from './auth'
import { createChatCompletion } from './actions/createChatCompletion'
export const togetherAi = createBlock({
export const togetherAiBlock = createBlock({
id: 'together-ai',
name: 'Together',
fullName: 'Together AI',

View File

@ -0,0 +1,7 @@
// Do not edit this file manually
import { parseBlockCredentials, parseBlockSchema } from '@typebot.io/forge'
import { togetherAiBlock } from '.'
export const togetherAiBlockSchema = parseBlockSchema(togetherAiBlock)
export const togetherAiCredentialsSchema =
parseBlockCredentials(togetherAiBlock)