Context window confusion on 4.1 mini

so i use assistant api using 4.1-mini


at some point, i got error context length 128k token …
i read on the documentation 4.1 context window is 1M, why this happened?