Container.Completions
Completions
Generate text based on the given text prompt.
post/v1/completions
Request
- Base URLhttp://localhost:8000
- Authnone declared
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"model": "(adapter-route)",
"max_tokens": 200,
"top_k": 1
}Response
Successfully generated completions.
Example response
{
"usage": {
"prompt_tokens": 5,
"completion_tokens": 7,
"total_tokens": 12
},
"choices": [
{
"text": "This is indeed a test",
"seed": 42,
"tokens": [
128000,
2028,
374,
13118,
264,
1296
]
}
]
}Changes
No recorded changes to this operation across all 1 revision of this API.