Skip to content

OpenAI Chat Completions

ProxAI uses the protocol name openai_chat_completions for the OpenAI Chat Completions API.

Protocol value
openai_chat_completions
Request path
/v1/chat/completions
Main code areas
src/protocol/openai/chat_completions/wiresrc/protocol/openai/chat_completions/requestsrc/protocol/openai/chat_completions/responsesrc/provider/openai/chat_completions
Conversion targets
pass-through selfanthropic_messages

Chat Completions is choice/message oriented:

response
└─ choices[]
└─ message or delta
├─ content
└─ tool_calls[]

Tool calls are identified by their tool_calls[].index during streaming, which differs from Responses output item identifiers.

Ingress validates the chat request shape, extracts routing fields such as model and stream, and forwards or translates the payload depending on the selected provider protocol.

Chat streaming chunks are comparatively loose: each chunk carries a delta for a choice and may contain partial content or partial tool-call arguments.

For cross-protocol identifier rules, see Protocol Conversion.