Create Completion
Changed onCreate a Completion.
Request
- Base URLhttps://text.octoai.run
- Authnone declared
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"peft": "example_peft_id"
}Response
An OctoAI text endpoint can be requested in either a synchronous orstreaming mode.When the request body has stream: False set the content type will beapplication/json. When the request body has stream: True set thecontent type will be text-event-stream and will respond with a stream ofserver-send-events (SSE).
Example response
{
"choices": [],
"created": 11,
"id": "cmpl-123",
"model": "my_model",
"system_fingerprint": "system_fingerprint"
}Changes
- breaking
added to the
request propertyallOflist - breaking
removed
subschema #2from therequest propertyanyOflist - breaking
the
response's property type changed from no type tostringfor status (media type: application/json) - breaking
the
response's property type changed from no type tostringfor status - warning
added the new
errorenum value to theresponse property for the response status - warning
added the new
text_completionenum value to theresponse property for the response status (media type: application/json) - warning
added the new
text_completionenum value to theresponse property for the response status (media type: text/event-stream) - info
added the new optional request property
- info
added the new optional request property
- info
the
request property default value changed from16to512
- breaking
- info
added the new optional request property
- info