@ -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) ?? [],
|
||||
|
@ -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'],
|
||||
|
6
packages/forge/blocks/anthropic/schemas.ts
Normal file
6
packages/forge/blocks/anthropic/schemas.ts
Normal 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)
|
Reference in New Issue
Block a user