> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ag2.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# autogen.oai.together.oai_messages_to_together_messages

<code class="doc-symbol doc-symbol-heading doc-symbol-function" />

#### oai\_messages\_to\_together\_messages

```python theme={null}
oai_messages_to_together_messages(messages: list[dict[str, Any]]) -> list[dict[str, Any]]
```

Convert messages from OAI format to Together.AI format.<br />We correct for any specific role orders and types.

<b>Parameters:</b>

| Name       | Description                      |
| ---------- | -------------------------------- |
| `messages` | **Type:** list\[dict\[str, Any]] |

<br />
