openai_responses_validate

Validates and enriches Responses API requests.

Versions marked “overview” do not contain this page. Selecting one opens that version’s documentation overview.

On this page

Validates and enriches Responses API requests.

Configuration Notes

Parses the body as [serde_json::Value] for targeted field extraction. Does not deserialize the full body into a typed struct or validate other provider-owned parameter combinations. It rejects unsupported background=true only after logical provider binding, so an OpenAI-owned passthrough request can preserve that provider-owned field.

Must be placed after openai_responses_format in the filter chain. Skips non-Responses API requests (those not classified as openai_responses).

Generates metadata: responses.response_id (format: resp_ + 32 hex chars, CSPRNG), responses.conversation_id, responses.store, responses.background, responses.stream.

Example

filter: openai_responses_validate