{
  "db_name": "PostgreSQL",
  "query": "\n            SELECT input_price_per_token, output_price_per_token, valid_from\n            FROM model_tariffs\n            WHERE deployed_model_id = $1\n              AND api_key_purpose = $2\n              AND valid_until IS NULL\n              AND ($3::VARCHAR IS NULL OR completion_window = $3 OR api_key_purpose != 'batch')\n            LIMIT 1\n            ",
  "describe": {
    "columns": [
      {
        "ordinal": 0,
        "name": "input_price_per_token",
        "type_info": "Numeric"
      },
      {
        "ordinal": 1,
        "name": "output_price_per_token",
        "type_info": "Numeric"
      },
      {
        "ordinal": 2,
        "name": "valid_from",
        "type_info": "Timestamptz"
      }
    ],
    "parameters": {
      "Left": [
        "Uuid",
        "Text",
        "Varchar"
      ]
    },
    "nullable": [
      false,
      false,
      false
    ]
  },
  "hash": "d71e0470682017ff28448df3d4b1f80a4d573b16efd37f80421d1a854d50595f"
}
