25 lines
693 B
TypeScript
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
|