OpenAI Chat Completions
OpenAI Chat Completions
Section titled “OpenAI Chat Completions”ProxAI uses the protocol name openai_chat_completions for the OpenAI Chat Completions API.
Protocol value
openai_chat_completionsRequest path
/v1/chat/completionsMain code areas
src/protocol/openai/chat_completions/wiresrc/protocol/openai/chat_completions/requestsrc/protocol/openai/chat_completions/responsesrc/provider/openai/chat_completionsConversion targets
pass-through self
anthropic_messagesChat 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.
Request handling
Section titled “Request handling”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.
Streaming
Section titled “Streaming”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.