2
0
Files
bot/packages/forge/blocks/groq/auth.ts
Baptiste Arnaud 6a7877dc9b Add Groq block
Closes #1721
2024-08-22 17:40:10 +02:00

25 lines
693 B
TypeScript

import { option, AuthDefinition } from '@typebot.io/forge'
import { defaultBaseUrl } from './constants'
export const auth = {
type: 'encryptedCredentials',
name: 'Groq account',
schema: option.object({
apiKey: option.string.layout({
label: 'API key',
isRequired: true,
inputType: 'password',
helperText:
'You can generate an API key [here](https://console.groq.com/keys).',
withVariableButton: false,
isDebounceDisabled: true,
}),
baseUrl: option.string.layout({
label: 'Base URL',
defaultValue: defaultBaseUrl,
withVariableButton: false,
isDebounceDisabled: true,
}),
}),
} satisfies AuthDefinition