2
0
Files
bot/packages/forge/blocks/openRouter/index.ts
Baptiste Arnaud 84d6c594af Add OpenRouter block
Closes #1254
2024-03-05 10:56:54 +01:00

14 lines
395 B
TypeScript

import { createBlock } from '@typebot.io/forge'
import { OpenRouterLogo } from './logo'
import { auth } from './auth'
import { createChatCompletion } from './actions/createChatCompletion'
export const openRouter = createBlock({
id: 'open-router',
name: 'OpenRouter',
tags: ['ai', 'openai', 'chat', 'completion'],
LightLogo: OpenRouterLogo,
auth,
actions: [createChatCompletion],
})