feat(openai): add app with auth

This commit is contained in:
Ali BARIN
2023-01-17 13:20:28 +01:00
parent 0870fa7e8f
commit 577d5215cd
7 changed files with 82 additions and 0 deletions

View File

@@ -0,0 +1,34 @@
import verifyCredentials from './verify-credentials';
import isStillVerified from './is-still-verified';
export default {
fields: [
{
key: 'screenName',
label: 'Screen Name',
type: 'string' as const,
required: true,
readOnly: false,
value: null,
placeholder: null,
description:
'Screen name of your connection to be used on Automatisch UI.',
clickToCopy: false,
},
{
key: 'apiKey',
label: 'API Key',
type: 'string' as const,
required: true,
readOnly: false,
value: null,
placeholder: null,
description: 'OpenAI API key of your account.',
docUrl: 'https://automatisch.io/docs/openai#api-key',
clickToCopy: false,
},
],
verifyCredentials,
isStillVerified,
};