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

@ -90,15 +90,15 @@ export const createChatMessage = createAction({
options,
turnableInto: [
{
blockType: 'mistral',
blockId: 'mistral',
transform: transformToChatCompletionOptions,
},
{
blockType: 'openai',
blockId: 'openai',
transform: transformToChatCompletionOptions,
},
{ blockType: 'open-router', transform: transformToChatCompletionOptions },
{ blockType: 'together-ai', transform: transformToChatCompletionOptions },
{ blockId: 'open-router', transform: transformToChatCompletionOptions },
{ blockId: 'together-ai', transform: transformToChatCompletionOptions },
],
getSetVariableIds: ({ responseMapping }) =>
responseMapping?.map((res) => res.variableId).filter(isDefined) ?? [],

View File

@ -3,7 +3,7 @@ import { AnthropicLogo } from './logo'
import { auth } from './auth'
import { createChatMessage } from './actions/createChatMessage'
export const anthropic = createBlock({
export const anthropicBlock = createBlock({
id: 'anthropic',
name: 'Anthropic',
tags: ['ai', 'chat', 'completion', 'claude', 'anthropic'],

View File

@ -0,0 +1,6 @@
// Do not edit this file manually
import { parseBlockCredentials, parseBlockSchema } from '@typebot.io/forge'
import { anthropicBlock } from '.'
export const anthropicBlockSchema = parseBlockSchema(anthropicBlock)
export const anthropicCredentialsSchema = parseBlockCredentials(anthropicBlock)