not sure if this is a bug or if someone has already found a solution and i just cant find a post regarding it but im having a lot of trouble adding GLM-4.7 to cursor.
I followed the guide to the exact word, I have a coding plan on z.ai, im on cursor pro, im using https://api.z.ai/api/coding/paas/v4, ive created several new api keys but I keep getting “model not found” errors and i dont know how to fix it.
Does anyone have any information as to how i can use GLM 4.7?
Thanks for the info. The error Model name is not valid: GLM-4.7 means Cursor is validating the model name on its side before sending the request, and it rejects unknown names. Looks like this was changed in the latest Cursor version.
Since curl works, the issue isn’t with z.ai. It’s that Cursor won’t allow the custom model name. For now, this is a Cursor limitation.
You can try:
As an alternative, try GLM-4.5-air or glm-4-0520. Different names might pass validation.
Also, open DevTools (Help > Toggle Developer Tools) and check the Network and Console tabs while sending the request. There may be more details on what exactly is being blocked.
ahhh so it is a bug my bad, i shouldve made a report rather than a discussion. It seems like a selective bug though? One of the users from the bug report post was using a free plan so GLM-4.7 wouldnt work anyway and it doesnt look like the other user who commented had an issue using GLM-4.7
I cant use any glm models though which again im confused by because 24hrs ago I could, curl tests all respond still and cursor hasnt updated. this is has just come about randomly