The stability of the food web is determined by the stability of the autotrophs.
Autotrophs are organisms that are able to produce organic substances from inorganic substances. Plants, for example, are autotrophic. Omnivores and heterotrophs are both dependent on autotrophs, making the stability depend on them.