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": "P9RW",
"next_indent": 27,
"prompt_tokens": 32,
"suffix_tokens": 1,
"trim_by_indentation": true
},
"max_tokens": 31,
"n": 8,
"nwo": "peBo",
"prompt": "O264DGWg7CElHj",
"stop": [
"Ss768dFzczm"
],
"stream": false,
"suffix": "BgO1GjUTIbaBZtsYzO4BsXtKXTc",
"temperature": 18,
"top_p": 26
}'
201 Created
Response{
"completions": [
"8xEshv4C8HlB83"
]
}