A defense based upon any of the provisions of Article 6 is an affirmative defense except that mental illness is not an affirmative defense, but an alternative plea or finding that may be accepted, under appropriate evidence, when the affirmative defense of insanity is raised or the plea of guilty but mentally ill is made.
720 ILCS 5/6-4