Files
bot/packages/forge/blocks/groq/auth.ts

25 lines
693 B
TypeScript
Raw Normal View History

2024-08-22 15:31:05 +02:00
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