Skip to main content

Documentation Index

Fetch the complete documentation index at: https://private-04b27de1.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

oai_messages_to_anthropic_messages

oai_messages_to_anthropic_messages(params: dict[str, Any]) -> list[dict[str, Any]]
Convert messages from OAI format to Anthropic format.
We correct for any specific role orders and types, etc.
Parameters:
NameDescription
paramsType: dict[str, Any]