API → ML → Generate 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": "Nz0hFujOSJOpHF6f596UgRebb",
"next_indent": 24,
"prompt_tokens": 25,
"suffix_tokens": 29,
"trim_by_indentation": false
},
"max_tokens": 24,
"n": 21,
"nwo": "qYXH8k6m0ma0RF9z",
"prompt": "oMskubbqj4vPYVoWt",
"stop": [
"F"
],
"stream": false,
"suffix": "1pQ0Aq5VfSr",
"temperature": 16,
"top_p": 19
}'
201 Created
Response{
"completions": [
"GxmZ7apqNn01Pv"
]
}