> ## Documentation Index
> Fetch the complete documentation index at: https://phidatainc-redirect-agent-platform-overview.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# OpenAI Like

The OpenAI Like model works as a wrapper for the OpenAILike models.

## Parameters

| Parameter                            | Type                              | Default                       | Description                                                                                            |
| ------------------------------------ | --------------------------------- | ----------------------------- | ------------------------------------------------------------------------------------------------------ |
| `id`                                 | `str`                             | `"not-provided"`              | The id of the model to use                                                                             |
| `name`                               | `str`                             | `"OpenAILike"`                | The name of the model                                                                                  |
| `provider`                           | `str`                             | `"OpenAILike"`                | The provider of the model                                                                              |
| `api_key`                            | `Optional[str]`                   | `"not-provided"`              | The API key for authentication                                                                         |
| `collect_metrics_on_completion`      | `bool`                            | `False`                       | Collect token metrics only from the final streaming chunk (for providers with cumulative token counts) |
| `base_url`                           | `str`                             | `"https://api.openai.com/v1"` | The base URL for the API                                                                               |
| `supports_native_structured_outputs` | `Optional[bool]`                  | `None`                        | Whether the model supports native structured outputs                                                   |
| `response_format`                    | `Optional[str]`                   | `None`                        | The format of the response                                                                             |
| `seed`                               | `Optional[int]`                   | `None`                        | Random seed for deterministic sampling                                                                 |
| `stop`                               | `Optional[Union[str, List[str]]]` | `None`                        | Up to 4 sequences where the API will stop generating further tokens                                    |
| `stream`                             | `bool`                            | `True`                        | Whether to stream the response                                                                         |
| `temperature`                        | `Optional[float]`                 | `None`                        | Controls randomness in the model's output                                                              |
| `top_p`                              | `Optional[float]`                 | `None`                        | Controls diversity via nucleus sampling                                                                |
| `request_params`                     | `Optional[Dict[str, Any]]`        | `None`                        | Additional parameters to include in the request                                                        |
| `client_params`                      | `Optional[Dict[str, Any]]`        | `None`                        | Additional parameters for client configuration                                                         |
| `retries`                            | `int`                             | `0`                           | Number of retries to attempt before raising a ModelProviderError                                       |
| `delay_between_retries`              | `int`                             | `1`                           | Delay between retries, in seconds                                                                      |
| `exponential_backoff`                | `bool`                            | `False`                       | If True, the delay between retries is doubled each time                                                |
