That's called context. For chatgpt it is a bit less than 4k words. Using api it goes up to a bit less of 32k. Alternative models goes up to a bit less than 64k.
Model wouldn't know anything you said before that
That is one of the biggest limitations of current generation of LLMs.