API → MLGenerate code completions for KCLbeta
beta
Parameters
Name
Type
Req.
Returns
- 201 Created
successful creation
Name
Type
Req.
body
objectoptionalObject 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": "JysG3h0oNRlokBhmivfM7gO5IjAfD",
"next_indent": 28,
"prompt_tokens": 21,
"suffix_tokens": 28,
"trim_by_indentation": false
},
"max_tokens": 28,
"n": 12,
"nwo": "fXtaICe7UNO72LldgGzY",
"prompt": "VytcFTm",
"stop": [
"CiaRbfq17Eky3Fwf5ubk4O"
],
"stream": false,
"suffix": "5WB8g8HObxybJTiSdgbS9lTCJ9A4tq",
"temperature": 11,
"top_p": 10
}'
201 Created
Response{
"completions": [
"Fqls"
]
}