You got it from your bf, unless you had sex with someone else.
The antibiotics for BV don't cure chlamydia, so even if you haven't slept with him since you took the BV meds, you'll still have chlamydia.
Are they treating you for the chlamydia?
Also - you keep calling him your bf - I hope you mean ex. :)