Skip to content
Navigation

Run inference-only employee chat through an OpenAI-compatible shape

With stream: true, the successful response is text/event-stream containing OpenAI chat completion chunks followed by [DONE]; without streaming it is the JSON chat completion schema below.

POST
/api/v1/chat/completions

Authorization

  • bearerAuth
    optional
    HTTP Bearer (API key)
    Authorization: Bearer <token>
  • cookieAuth
    optional
    API key in cookie

Request body JSON required

  • model
    string
    required
    maxLength: 200 · minLength: 1
  • messages
    array of
    object
    required
    • role
      system
      or
      user
      or
      assistant
      required
    • content
      string
      required
      maxLength: 12000 · minLength: 1
  • stream
    optional
    boolean
  • user
    optional
    string
    maxLength: 200 · minLength: 1
  • conversationId
    optional
    string
    maxLength: 128 · minLength: 1

Returns

200

Success

JSON
  • id
    string
    required
  • object
    string
    required
  • created
    integer
    required
    maximum: 9007199254740991 · minimum: 0
  • model
    string
    required
  • choices
    array of
    object
    required
    • index
      integer
      required
      maximum: 9007199254740991 · minimum: 0
    • message
      object
      required
      • role
        string
        required
      • content
        string
        required
    • finish_reason
      required

      Any of the following:

      • string
      • null

400

Invalid request
JSON
  • error
    string
    required
  • ok
    optional
    boolean
  • detail
    optional
    string
  • code
    optional
    string

404

Employee model not found
JSON
  • error
    string
    required
  • ok
    optional
    boolean
  • detail
    optional
    string
  • code
    optional
    string

Type to search…

↑↓ navigate↵ selectEsc close