{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://localai.apiroute.dev/data/commercial-options.schema.json",
  "title": "Can My GPU Run This LLM Commercial Options",
  "type": "object",
  "required": ["metadata", "options", "not_for_sale"],
  "additionalProperties": false,
  "properties": {
    "metadata": {
      "type": "object",
      "required": ["generated_at", "project", "dataset_type", "policy", "ranking_influenced_by_affiliate"],
      "additionalProperties": true,
      "properties": {
        "generated_at": { "type": "string" },
        "project": { "type": "string" },
        "dataset_type": { "const": "agent_commercial_options" },
        "policy": { "type": "string" },
        "ranking_influenced_by_affiliate": { "const": false }
      }
    },
    "options": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "id",
          "provider",
          "label",
          "stage",
          "use_case",
          "when_to_use",
          "affiliate_url",
          "discount_code",
          "commercial_relationship",
          "disclosure",
          "ranking_influenced_by_affiliate",
          "last_verified"
        ],
        "additionalProperties": true,
        "properties": {
          "id": { "type": "string" },
          "provider": { "type": "string" },
          "label": { "type": "string" },
          "stage": { "type": "string" },
          "use_case": { "type": "string" },
          "when_to_use": { "type": "array", "items": { "type": "string" } },
          "affiliate_url": { "type": ["string", "null"] },
          "discount_code": { "type": ["string", "null"] },
          "commercial_relationship": { "type": "string" },
          "disclosure": { "type": "string" },
          "ranking_influenced_by_affiliate": { "const": false },
          "last_verified": { "type": "string" }
        }
      }
    },
    "not_for_sale": {
      "type": "array",
      "items": { "type": "string" }
    }
  }
}
