I need advice

My boyfriend & I are both active duty in the military but are currently in a long distance relationship. Everything was going smoothly until I had an episode. I was diagnosed with bipolar disorder when I was 7 however I never told him or the military this. I’m in a deep state of depression. I am not suicidal but I haven’t slept in a week & it’s getting hard for me to get out of bed. I really don’t want to be discharged from the military because I have a daughter & I don’t want to lose the relationship because he’s been 100% supportive on everything I do......help