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,15 @@
import { option, AuthDefinition } from '@typebot.io/forge'
export const auth = {
type: 'encryptedCredentials',
name: 'OpenRouter account',
schema: option.object({
apiKey: option.string.layout({
label: 'API key',
isRequired: true,
inputType: 'password',
helperText:
'You can generate an API key [here](https://openrouter.ai/keys).',
}),
}),
} satisfies AuthDefinition