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

Supported Types

operations.ContentText

const value: operations.ContentText = {
  text: "<value>",
  type: "text",
};

operations.ContentImageURL

const value: operations.ContentImageURL = {
  imageUrl: {
    url: "https://zealous-march.biz/",
  },
  type: "image_url",
};

models.ContentPartInputAudio

const value: models.ContentPartInputAudio = {
  inputAudio: {
    data: "data:audio/wav;base64,UklGRiQAAABXQVZFZm10IBAAAAA...",
  },
  type: "input_audio",
};

models.ContentPartInputVideo

const value: models.ContentPartInputVideo = {
  inputVideo: {
    data: "data:video/mp4;base64,AAAAGGZ0eXBtcDQyAAAAAGlzb21tcDQy...",
  },
  type: "input_video",
};

models.ContentPartInputFile

const value: models.ContentPartInputFile = {
  inputFile: {
    data: "data:application/pdf;base64,JVBERi0xLjQKJeLjz9MKMyAw...",
  },
  type: "input_file",
};