{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/apipass/main/json-schema/apipass-perplexity-search-request-schema.json",
  "title": "PerplexitySearchRequest",
  "x-generated": "2026-10-16",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/apipass-openapi.json#/components/schemas/PerplexitySearchRequest",
  "properties": {
    "query": {
      "type": "string",
      "title": "Query",
      "description": "搜索问题"
    },
    "mode": {
      "type": "string",
      "title": "Mode",
      "description": "搜索模式: auto / pro / reasoning / deep research",
      "default": "auto"
    },
    "model": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Model",
      "description": "指定模型（需有账号）: sonar / gpt-5.2 / claude-4.5-sonnet / grok-4-1 等"
    },
    "sources": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Sources",
      "description": "搜索来源: web / scholar / social",
      "default": [
        "web"
      ]
    },
    "language": {
      "type": "string",
      "title": "Language",
      "description": "语言代码",
      "default": "en-US"
    },
    "stream": {
      "type": "boolean",
      "title": "Stream",
      "description": "是否流式返回",
      "default": false
    },
    "follow_up_backend_uuid": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Follow Up Backend Uuid",
      "description": "追问时传入上次响应的 backend_uuid"
    },
    "follow_up_attachments": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Follow Up Attachments",
      "description": "追问时传入上次的 attachments"
    },
    "incognito": {
      "type": "boolean",
      "title": "Incognito",
      "description": "是否隐身模式",
      "default": false
    }
  },
  "type": "object",
  "required": [
    "query"
  ]
}