Skip to content

Latest commit

 

History

History
16 lines (11 loc) · 4.75 KB

responseformat.md

File metadata and controls

16 lines (11 loc) · 4.75 KB

ResponseFormat

Example Usage

import { ResponseFormat } from "@mistralai/mistralai/models/components";

let value: ResponseFormat = {};

Fields

Field Type Required Description
type components.ResponseFormats An object specifying the format that the model must output. Setting to { "type": "json_object" } enables JSON mode, which guarantees the message the model generates is in JSON. When using JSON mode you MUST also instruct the model to produce JSON yourself with a system or a user message.
jsonSchema components.JsonSchema N/A