Hi there, cat food is much higher in protein than dog food and can cause digestive upset or even pancreatitis if eaten long term. I wouldn’t let your puppy eat it at all, cat food should be kept up out of reach. That may or may not be the leading cause of the gas, but it’s a good thing to rule out first. Thank you! Good luck with your puppy ☺️