Force JSON object response format
Users can now force command-nightly
to generate outputs in JSON objects by setting the response_format
parameter in the Chat API. Users can also specify a JSON schema for the output.
This feature is available across all of Cohereβs SDKs (Python, Typescript, Java, Go).
Example request for forcing JSON response format:
cURL
Example request for forcing JSON response format in user defined schema:
cURL
Currently only compatible with `command-nightly model.