Format Conversion
Openference supports three wire formats:- OpenAI (chat/completions, responses, embeddings)
- Anthropic (messages)
- Gemini (via OpenAI compatibility layer on many routes)
Passthrough vs conversion
When the model route is configured with the exact format you send, we pass the body through unchanged (best performance and fidelity). When formats differ, we convert:- OpenAI ↔ Anthropic (full messages, tool calls, system prompts, streaming events)
- Gemini is usually reached via its OpenAI-compatible surface
What is preserved
- Roles and content
- Tool / function calling roundtrips
- System instructions (mapped to
systemfor Claude) - Sampling parameters
- Streaming event shapes (converted to the client-expected format)

