OpenAI¶
The OpenAI data source is used to create interfaces with its various language models via the Chat component.
Prerequisites¶
To set up an OpenAI data source, you’ll need to enter your API key. Keys can be generated in the OpenAI user settings screen.
Configuration¶
Navigate to Data sources.
Click Create.
Set the general information:
- Type: OpenAI
- Name: ChatGPT
Click Next.
Set Authentication method to API Key Authentication.
Enter your API key. This can be found in the OpenAI user settings screen.
In the Common request headers section, click the box icon in the object, then click Append.
- Add a key-value pair that includes the $Auth merge variable:
- Key:
Authorization
- Value:
Bearer {{$Auth.API_Key}}
- Key:
Click Save.
Usage¶
This data source type can only be used with the Chat component.