responses
Compact a context window via the provider's standalone compact endpoint.
Stateless passthrough: forwards model + input (and any other fields the provider accepts) to the upstream /responses/compact endpoint and streams the compacted window back. Only OpenAI and Azure OpenAI implement this; routing to any other provider returns 501 with error_code = "not_supported".
post/api/v1/responses/compact
Request
- Base URL: / (relative, and the document was published on a file host, not at the API’s origin)
- URL: /api/v1/responses/compact
- Auth: HTTP bearer
Request body
Response
Compacted context window
Changes
No recorded changes to this operation across all 1 revision of this API.