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": "b8bmxQvad8Ctvd",
"next_indent": 32,
"prompt_tokens": 10,
"suffix_tokens": 2,
"trim_by_indentation": true
},
"max_tokens": 23,
"n": 22,
"nwo": "gZVKSQ7pOTgMjWgeolfM",
"prompt": "K7VQ07abwGXcnQ3aOss3tSQGTLdc9W",
"stop": [
"k6QVLqAYv8Hv"
],
"stream": true,
"suffix": "3z1fSCddvylEJmp",
"temperature": 7,
"top_p": 30
}'
201 Created
Response{
"completions": [
"0gjvespqPdq1Nef"
]
}