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": "jQr6bY5dwHQsA",
"next_indent": 27,
"prompt_tokens": 2,
"suffix_tokens": 2,
"trim_by_indentation": false
},
"max_tokens": 6,
"n": 16,
"nwo": "zSzZcZPb6QlQ3Pk2s25lUJg4fB",
"prompt": "DAMt4E5R",
"stop": [
"CR2YBpfSYcudovDUDG06cv25f"
],
"stream": true,
"suffix": "P31RPt8qo",
"temperature": 10,
"top_p": 10
}'
201 Created
Response{
"completions": [
"ngOj1TNwomnT7lR1BzBZ"
]
}