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": "cw9bOMZDlt8D7nKGW3y",
"next_indent": 7,
"prompt_tokens": 3,
"suffix_tokens": 27,
"trim_by_indentation": true
},
"max_tokens": 7,
"n": 15,
"nwo": "Schkdr4U1dau",
"prompt": "F8lZ7uuL1Bm7GVP2",
"stop": [
"8bv"
],
"stream": false,
"suffix": "Hh4hvqjPgUfgbXH8Cz7oo7pEV",
"temperature": 5,
"top_p": 13
}'
201 Created
Response{
"completions": [
"AIJVa2EMDUzyx"
]
}