The invention provides an optical filter device which is particularly suitable
for compensating the gain produced by an erbium doped fiber amplifier due to temperature
variations. The device has a tapered fiber filter mounted on a rigid substrate,
such as aluminium, in such a manner that the tapered portion of the filter does
not come in contact with the substrate. The fiber of the filter is preferably made
of silica.