Skip to content

CreateChatCompletionStreamResponseFormat

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

Example Usage

typescript
import { CreateChatCompletionStreamResponseFormat } from "@meetkai/mka1/models/operations";

let value: CreateChatCompletionStreamResponseFormat = {
  type: "text",
};

Fields

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