API → MLGenerate 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": "ErTABv6pfPxI",
"next_indent": 30,
"prompt_tokens": 31,
"suffix_tokens": 24,
"trim_by_indentation": true
},
"max_tokens": 24,
"n": 6,
"nwo": "",
"prompt": "agcb3kho",
"stop": [
"tZdfRUC9PmZ53sdsKJi83B3hRx"
],
"stream": true,
"suffix": "w1ervFVWV2TycwcbXsl",
"temperature": 3,
"top_p": 18
}'
201 Created
Response{
"completions": [
"eCOyrnxZRrYi8lHXd1mt"
]
}