Reference
Chat completions
POST /v1/chat/completions — the OpenAI-compatible request and response, plus the fields Seldon adds.
POST https://api.seldon-ai.com/v1/chat/completions
Authorization: Bearer sk-seldon-...
Content-Type: application/jsonThe request and response follow the OpenAI Chat Completions format. Fields Seldon doesn't use are passed through to the provider unchanged. This page lists what Seldon validates or adds.
Request body
Standard fields
Other standard parameters, such as temperature, max_tokens, top_p and stop, are passed through.
Seldon fields
With the OpenAI SDKs, send Seldon fields through extra_body.
Response
A standard chat.completion object. Seldon merges into usage without renaming standard fields:
Function calls add a top-level seldon object with function_id, revision_id, fallback_used and execution_id. See Call from your app.
Streaming
stream: true returns text/event-stream. Provider chunks are relayed unchanged and the stream ends with data: [DONE]. A mid-stream failure sends data: {"error": {"code": "...", "message": "..."}} before [DONE].
Errors
Errors return {"error": "...", "message": "...", "correlation_id": "..."} with an HTTP status. 400 responses may include reason, an upstream cause shared by every provider that rejected the request. See Errors.
Headers
See Headers for Idempotency-Key, attribution, session and response headers.