Can I leave my boyfriend if he stops sleeping with me or would that make it seem like I only care about sex?
Let your boyfriend know how important sex is to you. This does not mean you only care about sex. It simply means you do care about sex. I’m positive you care about other things as well. If you’re a woman, your high(er) libido has probably been derided by others, making you feel like a horny anomaly or a randy unicorn. If you’re a man, you’re simply considered a man. That has it’s own problematic dynamic, though, as low(er) libido and asexual men are often thought of as defective.
Regardless of my mini-diatribe, lob that ball back into his end of the court. This is not an ultimatum or a threat. You’re simply letting him know how important this aspect of the relationship is to you (much like letting him know the importance of him taking on his fair share of the housework, cooking or utilities—if you live together). No, I’m not comparing sex to bill-paying and chores (no indeed).
Maybe there’s some unrelated problem on his end affecting his libido (job stress, relationship insecurity, feelings of inadequacy, etc.).
Give him a chance to explain himself before you make a final decision.