v2
latestOpenAPI 3.1.02026-08-05267431678.1 KBopenai-compat
Responses
OpenAI-compatible Responses API endpoint.
Thin shell over :func:services.inference.adapters.openai_responses.run_responses. The adapter handles input-item to chat-message translation, LLM-passthrough vs Pioneer-task dispatch, SSE rendering, tool-call serialisation, persistence, and error mapping. The router keeps only HTTP-shaped concerns: route declaration, auth, rate limiting.
Args: body: Validated :class:ResponsesRequest. request: FastAPI request (forwarded so the adapter can read API-key billing context out of request.state for streaming responses). auth: Authenticated request context.
Returns: JSON response payload or :class:StreamingResponse SSE stream in Responses API format.
post/v1/responses
Request body
Response
Successful Response
{"stackTrail":"paths:/v1/responses:post:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}