2
0
Files
bot/packages/forge/blocks/openai/auth.ts
Baptiste Arnaud 648ec08a10 Add Together AI block (#1304)
Closes #1253
2024-03-01 15:33:22 +01:00

18 lines
474 B
TypeScript

import { createAuth, option } from '@typebot.io/forge'
export const auth = createAuth({
type: 'encryptedCredentials',
name: 'OpenAI account',
schema: option.object({
apiKey: option.string.layout({
isRequired: true,
label: 'API key',
placeholder: 'sk-...',
inputType: 'password',
helperText:
'You can generate an API key [here](https://platform.openai.com/account/api-keys)',
withVariableButton: false,
}),
}),
})