Hopefully you're right and she gets her shit together, but don't be surprised if it doesn't work. Speaking from personal experience, being with someone that has mental issues is completely draining. It seems so easy, especially to us who are only slightly mentally fucked, for them to just follow that path to recovery. But for the other person, that may not or will not be possible. Personally, I eventually had to get out. Looking back, especially now that I have a child, I wouldn't have wanted to have children with him or even marry him and doom my children to a lifetime of that shit.
I don't think you've mentally "checked out" of the relationship yet, so having 20 rational people on an Internet forum telling you to get out doesn't really change your mind. We're basically in a similar situation as you are with her. We keep telling you the logical path, one that may not be easy now but will be for your future, knowing full well you probably won't go through with it.