openai-compat

Generate one raw-prompt OpenAI legacy completion.

post/v1/completions

Request

  • The document declares no server URL.
  • Auth
    none declared

Headers

X-SIE-MACHINE-PROFILEstring nullable
X-SIE-Remotestring nullable

The only accepted value is forbid. It keeps the request off remote upstreams: local capacity serves or refuses it, and a model served only by an upstream answers 400. Any other value answers 400.

Request body

modelstring required

Generation model id

max_tokensinteger nullable

Maximum generated tokens

temperaturenumber nullable

Sampling temperature override

top_pnumber nullable

Nucleus-sampling probability override

frequency_penaltynumber nullable

Frequency penalty

presence_penaltynumber nullable

Presence penalty

seedinteger nullable

Optional signed 64-bit sampling seed

streamboolean nullable

Return OpenAI text_completion Server-Sent Events

n1 nullable

Only one completion candidate is supported

Response

OpenAI text completion, or text_completion Server-Sent Events when stream is true

idstring required
object'text_completion' required
createdinteger required
modelstring required
system_fingerprintstring nullable

Changes

    • info

      added the media type application/json for the response with the status

    • info

      added the media type application/json for the response with the status

    • info

      added the media type application/json for the response with the status

    • info

      added the new optional header request parameter X-SIE-Remote