Chemical conditions of gas in planet-forming disks