2
0
Files
bot/packages/forge/blocks/openRouter/auth.ts

17 lines
448 B
TypeScript
Raw Normal View History

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).',
isDebounceDisabled: true,
}),
}),
} satisfies AuthDefinition