JSON Completion
POST/complete/json
In contrast to the /complete
endpoint, the model generates a completion in valid JSON format, even if not requested explicitly in the prompt.
Note: If the max_tokens, i.e., the maximum number of allowed completion tokens is encountered before the completion is finished by the model,
then the JSON output will be cut off and therefore invalid.
JSON completion is currently only available for luminous workers.
To obtain a valid model, use GET /models_available
.
Request
Responses
- 200
OK