{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/orq/json-schema/orq-embedding-orq-params-schema.json",
  "title": "EmbeddingOrqParams",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/orq-embeddings-api-openapi.yml#/components/schemas/EmbeddingOrqParams",
  "additionalProperties": false,
  "properties": {
    "cache": {
      "$ref": "#/$defs/EmbeddingCacheConfig",
      "description": "Deprecated: use top-level cache instead."
    },
    "contact": {
      "$ref": "#/$defs/EmbeddingContactParams",
      "description": "Deprecated: use identity instead. Information about the contact making the request."
    },
    "fallbacks": {
      "description": "Deprecated: use top-level fallbacks instead.",
      "items": {
        "$ref": "#/$defs/FallbackConfig"
      },
      "type": [
        "array",
        "null"
      ]
    },
    "identity": {
      "$ref": "#/$defs/ResponseIdentity",
      "description": "Information about the identity making the request."
    },
    "load_balancer": {
      "$ref": "#/$defs/EmbeddingLoadBalancerConfig",
      "description": "Deprecated: use top-level load_balancer instead."
    },
    "name": {
      "description": "Deprecated: use top-level name instead.",
      "type": "string"
    },
    "retry": {
      "$ref": "#/$defs/EmbeddingRetryConfig",
      "description": "Deprecated: use top-level retry instead."
    },
    "timeout": {
      "$ref": "#/$defs/EmbeddingTimeoutConfig",
      "description": "Deprecated: use top-level timeout instead."
    }
  },
  "type": "object",
  "$defs": {
    "EmbeddingCacheConfig": {
      "additionalProperties": false,
      "properties": {
        "ttl": {
          "description": "Time to live for cached responses in seconds. Maximum 259200 seconds (3 days).",
          "format": "int64",
          "type": "integer"
        },
        "type": {
          "description": "Cache type.",
          "enum": [
            "exact_match"
          ],
          "type": "string"
        }
      },
      "required": [
        "type"
      ],
      "type": "object"
    },
    "EmbeddingContactParams": {
      "additionalProperties": false,
      "properties": {
        "display_name": {
          "type": "string"
        },
        "email": {
          "type": "string"
        },
        "id": {
          "type": "string"
        },
        "metadata": {
          "items": {
            "additionalProperties": {},
            "type": "object"
          },
          "type": [
            "array",
            "null"
          ]
        },
        "tags": {
          "items": {
            "type": "string"
          },
          "type": [
            "array",
            "null"
          ]
        }
      },
      "required": [
        "id"
      ],
      "type": "object"
    },
    "EmbeddingLoadBalancerConfig": {
      "additionalProperties": false,
      "properties": {
        "models": {
          "description": "Array of models with weights for load balancing requests.",
          "items": {
            "$ref": "#/$defs/EmbeddingLoadBalancerModelConfig"
          },
          "type": [
            "array",
            "null"
          ]
        },
        "type": {
          "description": "Load balancer type.",
          "enum": [
            "weight_based"
          ],
          "type": "string"
        }
      },
      "required": [
        "type",
        "models"
      ],
      "type": "object"
    },
    "EmbeddingLoadBalancerModelConfig": {
      "additionalProperties": false,
      "properties": {
        "model": {
          "description": "Model identifier for load balancing.",
          "type": "string"
        },
        "weight": {
          "description": "Weight assigned to this model for load balancing.",
          "format": "double",
          "type": "number"
        }
      },
      "required": [
        "model",
        "weight"
      ],
      "type": "object"
    },
    "EmbeddingRetryConfig": {
      "additionalProperties": false,
      "properties": {
        "count": {
          "description": "Number of retry attempts (1-5).",
          "format": "int64",
          "type": "integer"
        },
        "on_codes": {
          "description": "HTTP status codes that trigger retry logic.",
          "items": {
            "format": "int64",
            "type": "integer"
          },
          "type": [
            "array",
            "null"
          ]
        }
      },
      "required": [
        "count",
        "on_codes"
      ],
      "type": "object"
    },
    "EmbeddingTimeoutConfig": {
      "additionalProperties": false,
      "properties": {
        "call_timeout": {
          "description": "Timeout value in milliseconds.",
          "format": "int64",
          "type": "integer"
        }
      },
      "required": [
        "call_timeout"
      ],
      "type": "object"
    },
    "FallbackConfig": {
      "additionalProperties": false,
      "properties": {
        "model": {
          "type": "string"
        }
      },
      "required": [
        "model"
      ],
      "type": "object"
    },
    "ResponseIdentity": {
      "additionalProperties": false,
      "properties": {
        "display_name": {
          "type": "string"
        },
        "email": {
          "type": "string"
        },
        "id": {
          "type": "string"
        },
        "metadata": {
          "items": {
            "additionalProperties": {},
            "type": "object"
          },
          "type": [
            "array",
            "null"
          ]
        },
        "tags": {
          "items": {
            "type": "string"
          },
          "type": [
            "array",
            "null"
          ]
        }
      },
      "required": [
        "id"
      ],
      "type": "object"
    }
  }
}