# OpenAIChatRequest

Model ID: `OpenAIChatRequest`

No description.

Type: `object`

## Fields

| Field | Type | Required | Format | Allowed values | Default | Nullable | Description |
|---|---|---:|---|---|---|---:|---|
| `api_key` | `string` | No |  |  |  | No | Vendor credential. Sent with the request and never returned. |
| `default_model` | `string` | No |  |  | `"gpt-4o"` | No |  |
| `environment` | `string` | No |  |  |  | No |  |
| `max_tokens` | `integer` | No |  |  |  | Yes |  |
| `messages` | array of [`connectors.JsonValue`](./connectors.JsonValue.md) | Yes |  |  |  | No |  |
| `mode` | `string` | No |  | sandbox, live | `"sandbox"` | No | Which vendor environment the call is routed to. Defaults to sandbox, so an omitted mode never reaches a production vendor account. |
| `model` | `string` | No |  |  |  | Yes |  |
| `organization` | `string` | No |  |  |  | Yes |  |
| `system` | `string` | No |  |  |  | Yes |  |
| `temperature` | `number` | No |  |  | `0.7` | No |  |

## Example

None declared in canonical OpenAPI.
