GLM-5.3 Features
- Context and output: Maximum context 1M, maximum output 128K.
- Support for streaming output during tool calling process (
tool_stream=true), real-time retrieval of tool call parameters. - Forced deep thinking by default (
thinking={ type: "enabled" }), with the reasoning depth controlled byreasoning_effort. - Support for the
reasoning_effortparameter to control the reasoning effort level of the model when chain-of-thought thinking is enabled. - Superior code performance and advanced reasoning capabilities.
Migration Checklist
- Update model identifier to
glm-5.3 - Sampling parameters:
temperaturedefault value1.0,top_pdefault value0.95, recommend choosing only one for tuning - Deep thinking: Forced
thinking={ type: "enabled" }for complex reasoning/coding - Control reasoning effort: Configure
reasoning_effortto decide betweenlow(light thinking),high(enhanced thinking), ormax(deep thinking, default) - Streaming response: Enable
stream=trueand properly handledelta.reasoning_contentanddelta.content - Streaming tool calls: Enable
stream=trueandtool_stream=trueand stream-concatenatedelta.tool_calls[*].function.arguments - Maximum output and context: Set
max_tokensappropriately (GLM-5.3 maximum output 128K, context 1M) - Development environment verification: Conduct use case testing and regression, focus on randomness, latency, parameter completeness in tool streams
Start Migration
1. Update Model Identifier
- Update
modeltoglm-5.3.
2. Update Sampling Parameters
temperature: Controls randomness; higher values are more divergent, lower values are more stable.top_p: Controls nucleus sampling; higher values expand candidate set, lower values converge candidate set.temperaturedefaults to1.0,top_pdefaults to0.95, not recommended to adjust both simultaneously.
3. Deep Thinking (Forced)
- GLM-5.3 continues to support deep thinking capability, which is forced on by default and returns an error if disabled.
- Recommended to enable for complex reasoning and coding tasks:
- Control reasoning effort, default
maxfor deep reasoning:
4. Streaming Output and Tool Calls (Optional)
- GLM-5.3 supports real-time streaming construction and output during tool calling process, disabled by default (
False), requires enabling both:stream=True: Enable streaming output for responsestool_stream=True: Enable streaming output for tool call parameters
5. Testing and Regression
First verify in development environment that post-migration calls are stable, focus on:
- Whether responses meet expectations, whether there’s excessive randomness or excessive conservatism in output
- Whether tool streaming construction and output work normally
- Latency and cost in long context and deep thinking scenarios
More Resources
Concept Parameters
Common model parameter concepts and sampling recommendations
Tool Streaming Output
View tool streaming output usage details
API Reference
View complete API documentation
Technical Support
Get technical support and help