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": "gqpK",
"next_indent": 22,
"prompt_tokens": 31,
"suffix_tokens": 3,
"trim_by_indentation": true
},
"max_tokens": 19,
"n": 28,
"nwo": "eNFK3YUFEsjexVYMb",
"prompt": "6lF0fvKcn3koE",
"stop": [
"c"
],
"stream": false,
"suffix": "Uxs",
"temperature": 6,
"top_p": 17
}'
201 Created
Response{
"completions": [
"NxjFBrWUQmlwLZy2qdlImKeov5"
]
}