Skip to main content
The TypeScript SDK and docs are currently in beta. Report issues on GitHub.
Text response format configuration

Supported Types

models.ResponsesFormatText

const value: models.ResponsesFormatText = {
  type: "text",
};

models.ResponsesFormatJSONObject

const value: models.ResponsesFormatJSONObject = {
  type: "json_object",
};

models.ResponsesFormatTextJSONSchemaConfig

const value: models.ResponsesFormatTextJSONSchemaConfig = {
  type: "json_schema",
  name: "<value>",
  schema: {
    "key": "<value>",
    "key1": "<value>",
  },
};