Does your IM program know you were interested in OB in the past? If not, just tell them you don't feel internal medicine is what you expected/want to do the rest of your life, and you'd have to say why you feel OB would be a better match, and hopefully they will work with you. Unless your program is tiny, then they will be mad about it.