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": "y5E3OCgtvwT5nAQwbCQU",
    "next_indent": 16,
    "prompt_tokens": 28,
    "suffix_tokens": 16,
    "trim_by_indentation": true
  },
  "max_tokens": 15,
  "n": 15,
  "nwo": "LBA3uygdjZWP5yHtDPsGW3rFh",
  "prompt": "jtiEjVJZPl2QD",
  "stop": [
    "XhuPQXSGNoj9mFOisYTtAk1A05PL"
  ],
  "stream": true,
  "suffix": "RVNDcCFgNKZ43II",
  "temperature": 1,
  "top_p": 27
}'
201 Created
Response
{
  "completions": [
    "t92CVVQncrRkrRavshc"
  ]
}