It is likely just because it was a temporary change in his diet. Unlikely anything in the feed was a problem. It is almost assuredly all vegetarian feed. Not enough animal protein for a dog (or even a chicken for that matter).
I wouldn't waste money on a vet.
Is the feed medicated?