What happened?
#4603 updated the openai-codex model list, but incorrectly set the context window limit for openai-codex/gpt-5.3-codex-spark to 272000 via the CODEX_CONTEXT constant.
|
contextWindow: CODEX_CONTEXT, |
This causes pi to trigger auto-compaction at only around 47% of the displayed context window limit when using this model.
Steps to reproduce
- Select
openai-codex/gpt-5.3-codex-spark as the model
- See that Pi shows the context window limit as 272k
- Fill up more than 128k tokens of the context window
Expected behavior
The context window for openai-codex/gpt-5.3-codex-spark should be 128000, not 272000 (CODEX_CONTEXT). Should just be a change on this line:
|
contextWindow: CODEX_CONTEXT, |
Version
0.75.5
What happened?
#4603 updated the openai-codex model list, but incorrectly set the context window limit for
openai-codex/gpt-5.3-codex-sparkto 272000 via theCODEX_CONTEXTconstant.pi/packages/ai/scripts/generate-models.ts
Line 1550 in 3eb0027
This causes pi to trigger auto-compaction at only around 47% of the displayed context window limit when using this model.
Steps to reproduce
openai-codex/gpt-5.3-codex-sparkas the modelExpected behavior
The context window for
openai-codex/gpt-5.3-codex-sparkshould be 128000, not 272000 (CODEX_CONTEXT). Should just be a change on this line:pi/packages/ai/scripts/generate-models.ts
Line 1550 in 3eb0027
Version
0.75.5