# flytekitplugins.openai.chatgpt.connector

## Directory

### Classes

| Class | Description |
|-|-|
| [`ChatGPTConnector`](https://www.union.ai/docs/v1/flyte/api-reference/plugins/openai/packages/flytekitplugins.openai.chatgpt.connector/page.md#flytekitpluginsopenaichatgptconnectorchatgptconnector) |  |

### Variables

| Property | Type | Description |
|-|-|-|
| `OPENAI_API_KEY` | `str` |  |
| `TIMEOUT_SECONDS` | `int` |  |

## flytekitplugins.openai.chatgpt.connector.ChatGPTConnector

### Parameters

```python
def ChatGPTConnector()
```
### Properties

| Property | Type | Description |
|-|-|-|
| `task_category` | `flytekit.extend.backend.base_connector.TaskCategory` | task category that the connector supports |

### Methods

| Method | Description |
|-|-|
| [`do()`](#do) | This is the method that the connector will run. |

#### do()

```python
def do(
    task_template: flytekit.models.task.TaskTemplate,
    inputs: typing.Optional[flytekit.models.literals.LiteralMap],
    kwargs,
) -> flytekit.extend.backend.base_connector.Resource
```
This is the method that the connector will run.

| Parameter | Type | Description |
|-|-|-|
| `task_template` | `flytekit.models.task.TaskTemplate` | |
| `inputs` | `typing.Optional[flytekit.models.literals.LiteralMap]` | |
| `kwargs` | `**kwargs` | |

---
**Source**: https://github.com/unionai/unionai-docs/blob/main/content/api-reference/plugins/openai/packages/flytekitplugins.openai.chatgpt.connector.md
**HTML**: https://www.union.ai/docs/v1/flyte/api-reference/plugins/openai/packages/flytekitplugins.openai.chatgpt.connector/
