it's hard to say...i'm sorry i don't feel confident in passing judgement on this, i think it's up to a professional to decide. but as someone who has grown up with a mother with mental illness, i can offer my perspective on that. it was incredibly tough for me and continues to be as even though i am grown-up and out of that environment now i still have flashbacks and can't help dwelling on all the times my mother spent all day on the couch either crying or sleeping, her saying that her life wasn't worth living and she wished she was dead and then when she blamed me for all her problems...but the main problem is that she never got help or acknowledged that she had a problem and she still is oblivious to the pain she has caused me. if she wasn't, i think i would be healing a lot quicker.
but i think it'll be ok with your children b/c u are aware of what's happening to u and them and u are trying really hard to get better. and that shows that ur a kind, caring person and so look as u perservere and keep trying ur children will see that and appreciate and love u as much as u oblivously love them