Skip to content

OpenAIChatCompletionRequestParamsResponseFormat

An object specifying the format that the model must output. Setting to { 'type': 'json_object' } enables JSON mode.

Example Usage

typescript
import { OpenAIChatCompletionRequestParamsResponseFormat } from "@meetkai/mka1/models/components";

let value: OpenAIChatCompletionRequestParamsResponseFormat = {
  type: "<value>",
};

Fields

FieldTypeRequiredDescription
typecomponents.OpenAIChatCompletionRequestParamsType✔️The format type. Use 'json_object' to enable JSON mode, guaranteeing the message the model generates is valid JSON.