APIMLGenerate 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": "9jsYGTpI12FaUGgWSKZQypVMUSEAl",
    "next_indent": 21,
    "prompt_tokens": 7,
    "suffix_tokens": 24,
    "trim_by_indentation": false
  },
  "max_tokens": 1,
  "n": 18,
  "nwo": "1",
  "prompt": "x6wvp6DI",
  "stop": [
    "bqrK9VRtGZqLRLfth5FJttoOZF7Jph"
  ],
  "stream": true,
  "suffix": "wXC1R",
  "temperature": 32,
  "top_p": 23
}'
201 Created
Response
{
  "completions": [
    "zhgtUJaXYFsuoI2lk48"
  ]
}