The OpenAI Data Connector can be downloaded in the Verj.io Studio and used in a Form's server events to connect to OpenAI.
In order to connect to OpenAI at runtime however, an OpenAI API key must be configured in the Verj.io Runtime Environment that the Form is running in.
Create an OpenAI API key:
- Navigate to the OpenAI Platform website at platform.openai.com.
- Sign into your OpenAI account. If you don’t have an account, you’ll need to create one first.
- Click on API keys in the menu.
- Select View API Keys from the dropdown.
- Create an new API key by clicking: Create new secret key.
- This opens a dialog where you can optionally give the API key a name.
- Click Create secret key to generate and display the API key.
- Important: you cannot view the key again, so make sure you have copied it somewhere safe.
- Click OK.
You can use this key with the OpenAI Data Connector:
- Go to the Data Connector section of the Verj.io Administration Application.
- Click + to add a New Data Connector Configuration and name it: OpenAI.
- Click + to add a Data Connector Property.
- Property Name: apikey.
- Property Value: <Your OpenAI API Key>.
- Click + to add a Data Connector Property.
- Property Name: model.
- Property Value: <Your choice of model>.
- Optionally, click + to add a Data Connector Property.
- Property Name: org.
- Property Value: <Your OpenAI Organisation ID>.
- Click OK.
Click here for further information about configuring a Data Connector.