{
  "db_name": "PostgreSQL",
  "query": "\n        SELECT\n            cm.id as composite_model_id,\n            cm.alias,\n            cm.requests_per_second,\n            cm.burst_size,\n            cm.capacity,\n            cm.lb_strategy,\n            cm.fallback_enabled,\n            cm.fallback_on_rate_limit,\n            cm.fallback_on_status,\n            cm.fallback_with_replacement,\n            cm.fallback_max_attempts,\n            cm.sanitize_responses as composite_sanitize_responses,\n            cm.trusted as composite_trusted,\n            cm.open_responses_adapter as \"composite_open_responses_adapter?\",\n            -- Component info\n            dmc.deployed_model_id,\n            dmc.weight,\n            -- Underlying deployment info\n            dm.model_name,\n            dm.alias as deployment_alias,\n            dm.requests_per_second as deployment_requests_per_second,\n            dm.burst_size as deployment_burst_size,\n            dm.capacity as deployment_capacity,\n            dm.sanitize_responses as deployment_sanitize_responses,\n            dm.trusted as deployment_trusted,\n            dm.open_responses_adapter as \"deployment_open_responses_adapter?\",\n            -- Endpoint info\n            ie.url as \"endpoint_url!\",\n            ie.api_key as endpoint_api_key,\n            ie.auth_header_name,\n            ie.auth_header_prefix\n        FROM deployed_models cm\n        INNER JOIN deployed_model_components dmc ON cm.id = dmc.composite_model_id\n        INNER JOIN deployed_models dm ON dmc.deployed_model_id = dm.id\n        INNER JOIN inference_endpoints ie ON dm.hosted_on = ie.id\n        WHERE cm.is_composite = TRUE\n          AND cm.deleted = FALSE\n          AND dmc.enabled = TRUE\n          AND dm.deleted = FALSE\n        ORDER BY cm.id, dmc.sort_order ASC\n        ",
  "describe": {
    "columns": [
      {
        "ordinal": 0,
        "name": "composite_model_id",
        "type_info": "Uuid"
      },
      {
        "ordinal": 1,
        "name": "alias",
        "type_info": "Varchar"
      },
      {
        "ordinal": 2,
        "name": "requests_per_second",
        "type_info": "Float4"
      },
      {
        "ordinal": 3,
        "name": "burst_size",
        "type_info": "Int4"
      },
      {
        "ordinal": 4,
        "name": "capacity",
        "type_info": "Int4"
      },
      {
        "ordinal": 5,
        "name": "lb_strategy",
        "type_info": "Varchar"
      },
      {
        "ordinal": 6,
        "name": "fallback_enabled",
        "type_info": "Bool"
      },
      {
        "ordinal": 7,
        "name": "fallback_on_rate_limit",
        "type_info": "Bool"
      },
      {
        "ordinal": 8,
        "name": "fallback_on_status",
        "type_info": "Int4Array"
      },
      {
        "ordinal": 9,
        "name": "fallback_with_replacement",
        "type_info": "Bool"
      },
      {
        "ordinal": 10,
        "name": "fallback_max_attempts",
        "type_info": "Int4"
      },
      {
        "ordinal": 11,
        "name": "composite_sanitize_responses",
        "type_info": "Bool"
      },
      {
        "ordinal": 12,
        "name": "composite_trusted",
        "type_info": "Bool"
      },
      {
        "ordinal": 13,
        "name": "composite_open_responses_adapter?",
        "type_info": "Bool"
      },
      {
        "ordinal": 14,
        "name": "deployed_model_id",
        "type_info": "Uuid"
      },
      {
        "ordinal": 15,
        "name": "weight",
        "type_info": "Int4"
      },
      {
        "ordinal": 16,
        "name": "model_name",
        "type_info": "Varchar"
      },
      {
        "ordinal": 17,
        "name": "deployment_alias",
        "type_info": "Varchar"
      },
      {
        "ordinal": 18,
        "name": "deployment_requests_per_second",
        "type_info": "Float4"
      },
      {
        "ordinal": 19,
        "name": "deployment_burst_size",
        "type_info": "Int4"
      },
      {
        "ordinal": 20,
        "name": "deployment_capacity",
        "type_info": "Int4"
      },
      {
        "ordinal": 21,
        "name": "deployment_sanitize_responses",
        "type_info": "Bool"
      },
      {
        "ordinal": 22,
        "name": "deployment_trusted",
        "type_info": "Bool"
      },
      {
        "ordinal": 23,
        "name": "deployment_open_responses_adapter?",
        "type_info": "Bool"
      },
      {
        "ordinal": 24,
        "name": "endpoint_url!",
        "type_info": "Varchar"
      },
      {
        "ordinal": 25,
        "name": "endpoint_api_key",
        "type_info": "Text"
      },
      {
        "ordinal": 26,
        "name": "auth_header_name",
        "type_info": "Varchar"
      },
      {
        "ordinal": 27,
        "name": "auth_header_prefix",
        "type_info": "Varchar"
      }
    ],
    "parameters": {
      "Left": []
    },
    "nullable": [
      false,
      false,
      true,
      true,
      true,
      true,
      true,
      true,
      true,
      true,
      true,
      false,
      false,
      true,
      false,
      false,
      false,
      false,
      true,
      true,
      true,
      false,
      false,
      true,
      false,
      true,
      false,
      false
    ]
  },
  "hash": "142d089eafb587caf9d801dc396bbdcbed48bbcd7d9c752aa93b224fa3233254"
}
