Perplexity · Schema

ChatMessageContentImageChunk

Properties

Name Type Description
type string
image_url object
View JSON Schema on GitHub

JSON Schema

perplexity-chatmessagecontentimagechunk-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/ChatMessageContentImageChunk",
  "title": "ChatMessageContentImageChunk",
  "properties": {
    "type": {
      "type": "string",
      "const": "image_url",
      "title": "Type"
    },
    "image_url": {
      "anyOf": [
        {
          "$ref": "#/components/schemas/URL"
        },
        {
          "type": "string"
        }
      ],
      "title": "Image Url"
    }
  },
  "type": "object",
  "required": [
    "type",
    "image_url"
  ]
}