ChatGPT connector

Installation

To install the ChatGPT connector, run the following command:

$ pip install flytekitplugins-openai

Example usage

For an example query, see ChatGPT connector example usage

Local testing

To test the ChatGPT connector locally, create a class for the connector task that inherits from SyncConnectorExecutorMixin. This mixin can handle synchronous tasks and allows the SDK to mimic the system’s behavior in calling the connector.

For more information, see Testing connectors locally.

In some cases, you will need to store credentials in your local environment when testing locally.