The random phase approximation is generalized to include the effects of core polarization and non local potentials. Core polarization can explain the blue shift of the dipole mode recently observed in silver clusters. Non local effects introduce in the dipole frequency a dependence on the crystalline mass which is crucial to explain the data in lithium. (author) 18 refs.; 2 tabs.