Calling all dog lovers! Please help! Dog ate chocolate

Jocelyn • married, Mother of 2🩷💙

My chihuahua ate a piece of chocolate chip cookie this afternoon. I didn't know until later when I saw her licking her mouth and had a guilty look in her eyes. Not until now she been throwing up. She threw up three times already. But still been playing. Plays for a little while and lays back down. Texted my brother already once he's out of work were taking her to the animal hospital. First pet so don't know what to expect. Besides the vomiting she don't look so sick. Should I still take her to the hospital? First pet besides birds so I'm not so sure. She's 8 months

Thank you!