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": "CYXgJ81ehZp8TGf8J0e6rIjQQ9y",
"next_indent": 13,
"prompt_tokens": 10,
"suffix_tokens": 14,
"trim_by_indentation": true
},
"max_tokens": 10,
"n": 22,
"nwo": "GDF9DAdNVYREij9v47M0WpRb",
"prompt": "32xNjEUT3rz8RjccaFOZoX9",
"stop": [
"m4sv5MLBAc4Zy"
],
"stream": false,
"suffix": "D8qe",
"temperature": 18,
"top_p": 17
}'
201 Created
Response{
"completions": [
"fxXa2Kv6s"
]
}