✨ Introducing The Forge (#1072)
The Forge allows anyone to easily create their own Typebot Block. Closes #380
This commit is contained in:
16
packages/forge/blocks/openai/auth.ts
Normal file
16
packages/forge/blocks/openai/auth.ts
Normal file
@ -0,0 +1,16 @@
|
||||
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-...',
|
||||
helperText:
|
||||
'You can generate an API key [here](https://platform.openai.com/account/api-keys)',
|
||||
withVariableButton: false,
|
||||
}),
|
||||
}),
|
||||
})
|
Reference in New Issue
Block a user