In New Mexico, it is almost always called chile, especially when talking about mild green chiles. Chili, spelled with an "i," usually refers to the final dish or, sometimes, the hot kind of chilis. When I get stumped, I just remember that the "chili" in traditional chili con carne is spelled with an "i," and it's spelled that way because it refers to the name of the final dish.