API → MLGenerate code completions for KCL
beta

Parameters

Name

Type

Req.

Returns

  • 201 Created

    successful creation

    Name

    Type

    Req.

    body

    object
    optional
    Object Properties
post
/ml/kcl/completions
$ curl -X POST "https://api.zoo.dev/ml/kcl/completions" \
	--header "Authorization: Bearer $TOKEN" \
	--header "Content-Type: application/json" \
	--data '{
  "extra": {
    "language": "IwNiZnBOL8",
    "next_indent": 8,
    "prompt_tokens": 6,
    "suffix_tokens": 5,
    "trim_by_indentation": false
  },
  "max_tokens": 32,
  "n": 10,
  "nwo": "5",
  "prompt": "7",
  "stop": [
    "W1"
  ],
  "stream": false,
  "suffix": "IxiXghfiFoi4mEEr0Uefr",
  "temperature": 8,
  "top_p": 2
}'
201 Created
Response
{
  "completions": [
    "3jTlk2"
  ]
}