POST
/
chat
/
completions
curl --request POST \
  --url https://app.empower.dev/api/v1/chat/completions \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "n": 1,
  "frequency_penalty": 0,
  "ignore_eos": false,
  "max_tokens": 256,
  "messages": [
    {
      "content": "<string>",
      "role": "<string>"
    }
  ],
  "model": "IlyaGusev/saiga_mistral_7b_lora",
  "presence_penalty": 0,
  "stream": false,
  "temperature": 1,
  "top_p": 1
}'
{
  "choices": [
    {
      "finish_reason": "<string>",
      "index": 123,
      "logprobs": [
        123
      ],
      "message": {
        "content": "<string>",
        "role": "<string>"
      }
    }
  ],
  "created": 123,
  "id": "<string>",
  "model": "<string>",
  "usage": {
    "completion_tokens": 123,
    "prompt_tokens": 123,
    "total_tokens": 123
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Response

200
application/json

Completions are generated successfully.

The response is of type object.