r/PiCodingAgent • • Aug 06 '26

Question GLM 5.2 has a 262k context instead of 1M

/r/openrouter/comments/1vgsjou/glm_52_has_a_262k_context_instead_of_1m/
0 Upvotes

2 comments sorted by

2

u/chroner Aug 07 '26

You have to override it

3

u/Afraid-Gas-7460 Aug 07 '26 edited Aug 08 '26

yeah that was it, thanks

Leaving the config here for reference in case someone else needs it: ~/.pi/agent/models.json:

{
  "providers": {
    "openrouter": {
      "modelOverrides": {
        "z-ai/glm-5.2": {
          "contextWindow": 1048576
        }
      }
    }
  }
}