It needs to match both.
The stitch regulator controls the needle up/down of the machine, so that's the machine part.
It does this based on the movement of the carriage, so that's the frame part.
You would need to choose a frame that offers a stitch regulator compatible with the machine you're using on it. Generally, the frame mfr provides the stitch regulator but only supports a limited number of machines.