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": "vvUXPGIu0EGH6yxrwFBao",
"next_indent": 17,
"prompt_tokens": 16,
"suffix_tokens": 2,
"trim_by_indentation": false
},
"max_tokens": 22,
"n": 5,
"nwo": "aoyja",
"prompt": "vzOuQmSZOdjteIOGB79X",
"stop": [
"kt9V5pU"
],
"stream": true,
"suffix": "9CJby2T",
"temperature": 17,
"top_p": 5
}'
201 Created
Response{
"completions": [
"52NcGDZynX0twsSZxx"
]
}