ChatGPT connector

Installation

To install the ChatGPT connector, run the following command:

$ pip install flytekitplugins-openai

Example usage

For an example job, 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 flytekit to mimic FlytePropeller’s behavior in calling the connector.

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

Flyte deployment configuration

If you are using a managed deployment of Flyte, you will need to contact your deployment administrator to configure connectors in your deployment.

To enable the ChatGPT connector in your Flyte deployment, see the ChatGPT connector deployment guide.