{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/quorum-dog/json-schema/quorum-dog-chat-completion-request-schema.json",
  "title": "ChatCompletionRequest",
  "x-generated": "2026-11-22",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/quorum-dog-openapi.json#/components/schemas/ChatCompletionRequest",
  "type": "object",
  "required": [
    "model",
    "messages"
  ],
  "properties": {
    "model": {
      "type": "string",
      "description": "The id from /v1/models (a ticker such as QRUM:STAN) — a mode, not a single model."
    },
    "messages": {
      "type": "array",
      "minItems": 1,
      "items": {
        "$ref": "#/$defs/Message"
      }
    },
    "stream": {
      "type": "boolean",
      "default": false,
      "description": "Only `false` is accepted. `true` returns 400 `stream_not_supported` — provider token streaming is not implemented, and a silent non-stream would break an SDK waiting for SSE."
    },
    "quorum": {
      "type": "object",
      "description": "Optional per-call overrides, within what the mode and your key permit.",
      "additionalProperties": true
    }
  },
  "$defs": {
    "Message": {
      "type": "object",
      "required": [
        "role",
        "content"
      ],
      "properties": {
        "role": {
          "type": "string",
          "enum": [
            "system",
            "user",
            "assistant"
          ]
        },
        "content": {
          "type": "string"
        }
      }
    }
  }
}