Is GLM-5.2's million-token context suitable for including an entire repository?
It is suitable for accommodating a large amount of project material, but indiscriminately adding an entire repository is not recommended. Prioritize the directory structure, relevant modules, requirements, and tests, then add dependency files. This makes it easier to keep the question focused and allows the model to explain which conclusions come from which files, making omissions easier to check.
What are the main differences between GLM-5.2 and GLM-5.1?
The main differences are a larger native context window and stronger long-horizon programming capabilities. GLM-5.2 places greater emphasis on sustained implementation, optimization, and debugging rather than one-time code completion. If a task only involves explaining short code, the difference may not be obvious; cross-file tasks and tasks with multiple rounds of feedback are more worthwhile to compare.
Which API should I choose to call GLM-5.2?
If you need to organize historical messages and tool loops yourself, choose /glm/chat/completions and submit model and messages. If you want to continue a conversation through a session id, you can choose the AI Chat entry point; for creating a new managed chat application, consider /aichat2/conversations first.
Can I pass the native Max reasoning level directly to the API?
You cannot submit Max directly as the reasoning_effort value for /glm/chat/completions, because that endpoint's parameter enum does not include max. Official native GLM-5.2 provides High and Max reasoning levels, but they cannot be directly equated with platform parameter tiers. Set this parameter only when the selected endpoint explicitly supports the corresponding glm-5.2 tier; for standard calls, you can first submit model and messages. Complex engineering tasks should still be validated with tests; reasoning effort is not a substitute for correctness checks.
Can GLM-5.2 automatically run tests and complete fixes?
It can analyze test results, propose fixes, and participate in tool feedback loops, but automatically running tests requires cooperation from the execution environment and tools. The standard API has the application execute tools; managed tool workflows depend on enabled capabilities and authorization. Whether a fix ultimately succeeds should be determined by actual test results.