Dog question TMI

My dog throws up at least once or twice a week. She is not getting into anything she is not supposed to. Anyone know what could be causing this? She will be 2 in a few months. When she was a puppy, she had really bad diarrhea for a while. Every time she pooped, it was mostly liquid. For that, our vet had us mix puree pumpkin in hur food. That helped and after a while, she did not need it anymore. I'm wondering if there is any correlation, like maybe she just has a sensitive stomach or something.

We have an appointment with the vet in two weeks, just wanted to see if anyone on here has gone through this.