2
0

Add OpenRouter block

Closes #1254
This commit is contained in:
Baptiste Arnaud
2024-03-05 10:56:54 +01:00
parent 77bc138c38
commit 84d6c594af
14 changed files with 173 additions and 3 deletions

View File

@@ -0,0 +1,13 @@
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],
})