Context window size for GLM 5.2 needs to be fixed

GLM 5.2 appears to show a 200k context window in Cursor. not sure how to fix this? it’s supposed to be 1M. another user has posted on this same issue with no help yet.

GLM 5.2 isn’t an option in Cursor though

it’s via BYOK, this is a known issue for some BYOK models because if cursor doesn’t have them as registered (into the available model to use inside cursor as BYOK), it caps the context window at 200k to be secure

How long does Cursor typically take to add the latest models? Really wanting to try GLM 5.2 now that Fable has bitten the dust. I can’t even get it to work. Keeps giving me errors.

Hey, this isn’t a bug. It’s the current behavior for custom OpenAI-compatible models.

For models that aren’t in Cursor’s catalog, Cursor sets the context window to 1M by default. Cursor can’t auto-detect the real context window from your provider. You might see 200K if the model name matches something in Cursor’s catalog, or if a different default kicks in. The exact trigger isn’t documented.

Workaround: register your custom model under a unique name that doesn’t match any model in Cursor’s catalog. Then it’ll use the 1M default.

Right now there’s no way to set the context window manually. This is tracked as a feature request, you can follow it here: Unlock Full Context Window with Own API Keys

I also explained the 1M default logic in more detail here: Custom Models Set The Context Window to 1M

How did you get GLM 5.2 into Cursor?

Hey @HumanChapter it’s via custom models! Learn about BYOK

I know about it, but none of the supported providers mentioned in the BYOK page support GLM 5.2. I tried setting the base URL for Fireworks AI for example, but it doesn’t work.

What provider did you try?