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": "",
    "next_indent": 27,
    "prompt_tokens": 21,
    "suffix_tokens": 12,
    "trim_by_indentation": true
  },
  "max_tokens": 14,
  "n": 8,
  "nwo": "BbpMwCAFXynk7emL2qZNueA",
  "prompt": "Z9PpMt39dSehOON52m9dZ",
  "stop": [
    "NDbYegpRmkJaDSyaOudKNPs5p"
  ],
  "stream": true,
  "suffix": "uykKyRpXYAxDift",
  "temperature": 28,
  "top_p": 7
}'
201 Created
Response
{
  "completions": [
    "wkY30U"
  ]
}