OpenAI Chat Completions Guard Contract
API reference · Field-policy meanings
Operation: createChatCompletion. Payload profile: single_text.v1. Contract format: 1.0.0-alpha.1.
Request · Response · Stream · Exact contract
These declarations describe the native binding’s guard boundary, not a complete provider schema. Rails configuration selects the checks that run. See supported content.
Response and stream inspection declarations apply when output inspection is enabled. Guarded request validation still applies when checks are disabled. See disabled checks and pass-through.
Required presence is local to each containing object and schema branch. Nested accordions preserve those scopes; branch labels identify schema alternatives, not payload members. Hover a field name for its exact schema pointer. Defaults are not inserted into forwarded traffic.
Request
Object policy
$.messages[]
Object policy
Response
Object policy
$.choices[]
Object policy
$.choices[].message
Object policy
Stream
Event roles and missing-text rules come from the bound classifier. See stream declaration meanings and runtime completion and errors.
Transport declarations
Exact contract
This is the unmodified export from the bound Python endpoint. Stateful stream hooks, enabled Rails checks, and arbitrary Python validation are not serialized.