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

Supported Types

models.FormatTextConfig

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

models.FormatJsonObjectConfig

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

models.FormatJsonSchemaConfig

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