Page cover

Completions

Completion in a Large Language Model (LLM) refers to the process of generating text based on the input provided by the user. The LLM receives a prompt (input) and then produces a response that continues or completes the text according to patterns learned from its training data.

https://dekallm.cloudeka.ai/v1/chat/completions

Example Request

curl --request POST \
  --url https://dekallm.cloudeka.ai/v1/chat/completions \
  --header 'Authorization: Bearer API_KEY' \
  --header 'Content-Type: application/json' \
  --data '{
  "model": "meta/llama-3.1-405b-instruct",
  "messages": [
    {
      "role": "system",
      "content": "You are a story teller"
    },
		 {
      "role": "user",
      "content": "Write poem that tell story about Lord of the Rings start from when Frodo leaves his villages. Story should also tell the audience that Frodo is not always good boy, while Sauron also not always a bad boy. Poem should have 10 paragraf and have rythmns like a folks song"
    }
  ],
  "stream": false,
  "temperature": 0.9,
  "top_p": 1,
}'

Response

Last updated