14 lines
395 B
TypeScript
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],
|
|
})
|