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

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

View File

@ -3,7 +3,7 @@ import { OpenRouterLogo } from './logo'
import { auth } from './auth'
import { createChatCompletion } from './actions/createChatCompletion'
export const openRouter = createBlock({
export const openRouterBlock = createBlock({
id: 'open-router',
name: 'OpenRouter',
tags: ['ai', 'openai', 'chat', 'completion'],

View File

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