Compact a response
POST
/model/v1/responses/compact○ UnsupportedReturns
501 This endpoint is not implemented yet; calling it returns the response below:
Compacts a response's input into a summary. It depends on OpenAI Responses' official server-side storage (store) semantics, which we have not implemented yet; calling it returns 501 (message “This platform has not implemented … yet.”, with the x-should-retry header set to false), has no side effects, and the official SDK will not retry.
Platform errors (auth, rate limits, validation) and OCR errors use problem+json; other model call errors follow the endpoint's own format (OpenAI or Anthropic) — see error codes
Request
curl
curl https://api.deepraxis.com/model/v1/responses/compact \
-H "Authorization: Bearer $PRAXIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"deepseek-flash","input":"你好"}'Python
from openai import OpenAI
client = OpenAI(
base_url="https://api.deepraxis.com/model/v1",
api_key="$PRAXIS_API_KEY",
)
resp = client.responses.compact(
model="deepseek-flash",
input="你好",
)TypeScript
import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://api.deepraxis.com/model/v1",
apiKey: "$PRAXIS_API_KEY",
});
const resp = await client.responses.compact({
model: "deepseek-flash",
input: "你好",
});Response 501
{
"error": {
"message": "This platform has not implemented POST /v1/responses/compact yet.",
"type": "api_error",
"param": null,
"code": "internal"
}
}Response
HTTP 200
Native Responses API compact response
application/json
| Name | Type | Description |
|---|---|---|
| $ | object |