hi
you need to see your doctor and find what the problem is, but if it was me and spicy food made me cough i woul eat some thing els, peppers and spicy stuff irritate the throat,
so stop taking it for a while see if it clears up, but see your doc pronto.
There are many, many causes of chronic cough but the 3 most common are asthma, postnasal drip and gastroesophageal reflux disease (GERD) the condition that causes indigestion and heartburn. Your doctor could help you determine if any of these 3 is the culprit. If none are, your best bet would be to make an appointment at the nearest cough clinic. These clinics are usually found at university medical centers.
Also, you should in the meantime avoid peppers or ketchup.
Good luck.