Domestic violence

Last week my bf n I got in a nasty argument he promised that he was going to quit drinking and he showed up to my house really drunk he started to insult me and raising his voice at me so I calmly told him that I don’t want to be with him 4 months ago he was really drunk to the point that he hit my head against the wall n after that he felt bad n made a promise he wasn’t going to drink so he agreed in breaking up and started to throw stuff around so I got pissed off told him to leave he had been living with me n I was providing him with a vehicle and feeding him since he was homeless and I started to scream at him that he has no empathy on people who love him n care about him so I slapped my cheeks of anger telling him to get out n he came to my face and yelled don’t hit urself if anything hit me bitch hit me bitch n I slapped him so he grabbed me pushed me to the point that I fell on the sofa n he put his knee on my neck after that I tried to reach to his phone to call the cops he refused and pushed me in the bed got on top of me n used his body to push me down til I fell from the bed he started to say to me I’m done with you bitch and started to insult me and said if I want to have a drink I will have a fucking drink bitch until the cops came and arrested him n took him in now he hates me and is telling all his friends that I’m bipolar but then again this isn’t the first time he has tried to choke me and left me with depression anxiety and nightmares is this really my fault ? Or should I talk to the judge that this was a mistake