Configuration for text output format.

interface TextResponseFormat {
    mime_type?: "application/json" | "text/plain";
    schema?: { [key: string]: unknown };
    type: "text";
}

Properties

mime_type?: "application/json" | "text/plain"

The MIME type of the text output.

schema?: { [key: string]: unknown }

The JSON schema that the output should conform to. Only applicable when mime_type is application/json.

type: "text"