Skip to content

Commit c10d75c

Browse files
committed
feat(providers): add GLM-5.3 and GLM-5.3-Flash to Z.ai
1 parent 957049e commit c10d75c

3 files changed

Lines changed: 38 additions & 2 deletions

File tree

apps/docs/content/docs/en/workflows/blocks/agent.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ Live tool-call chips stream for **OpenAI, Anthropic, Azure Anthropic, Google, Ve
119119
| Groq | Full thinking deltas | `groq/openai/gpt-oss-120b`, `groq/openai/gpt-oss-20b`, `groq/openai/gpt-oss-safeguard-20b`, `groq/qwen/qwen3.6-27b` |
120120
| Meta | Not streamed | `muse-spark-1.1` |
121121
| Kimi | Full thinking deltas | `kimi-k2.6` |
122-
| Z.ai | Full thinking deltas | `glm-5.2`, `glm-5.1`, `glm-5`, `glm-5-turbo`, `glm-4.7`, `glm-4.6`, `glm-4.5`, `glm-4.5-air` |
122+
| Z.ai | Full thinking deltas | `glm-5.3`, `glm-5.2`, `glm-5.1`, `glm-5`, `glm-5-turbo`, `glm-4.7`, `glm-4.6`, `glm-4.5`, `glm-4.5-air` |
123123

124124
{/* agent-stream-capabilities:end */}
125125

apps/sim/providers/models.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,8 @@ describe('zai provider definition', () => {
253253
const zai = PROVIDER_DEFINITIONS.zai
254254

255255
const expectedModels = [
256+
{ id: 'glm-5.3', contextWindow: 1000000 },
257+
{ id: 'glm-5.3-flash', contextWindow: 1000000 },
256258
{ id: 'glm-5.2', contextWindow: 1000000 },
257259
{ id: 'glm-5.1', contextWindow: 200000 },
258260
{ id: 'glm-5', contextWindow: 200000 },

apps/sim/providers/models.ts

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2888,6 +2888,41 @@ export const PROVIDER_DEFINITIONS: Record<string, ProviderDefinition> = {
28882888
toolUsageControl: true,
28892889
},
28902890
models: [
2891+
{
2892+
id: 'glm-5.3',
2893+
pricing: {
2894+
input: 1.4,
2895+
output: 4.4,
2896+
updatedAt: '2026-08-26',
2897+
},
2898+
capabilities: {
2899+
temperature: { min: 0, max: 1 },
2900+
toolUsageControl: true,
2901+
maxOutputTokens: 131072,
2902+
reasoningEffort: {
2903+
values: ['low', 'high', 'max'],
2904+
},
2905+
},
2906+
contextWindow: 1000000,
2907+
releaseDate: '2026-08-14',
2908+
recommended: true,
2909+
},
2910+
{
2911+
id: 'glm-5.3-flash',
2912+
pricing: {
2913+
input: 0.15,
2914+
output: 0.5,
2915+
updatedAt: '2026-08-26',
2916+
},
2917+
capabilities: {
2918+
temperature: { min: 0, max: 1 },
2919+
toolUsageControl: true,
2920+
maxOutputTokens: 131072,
2921+
},
2922+
contextWindow: 1000000,
2923+
releaseDate: '2026-08-26',
2924+
speedOptimized: true,
2925+
},
28912926
{
28922927
id: 'glm-5.2',
28932928
pricing: {
@@ -2905,7 +2940,6 @@ export const PROVIDER_DEFINITIONS: Record<string, ProviderDefinition> = {
29052940
},
29062941
contextWindow: 1000000,
29072942
releaseDate: '2026-06-13',
2908-
recommended: true,
29092943
},
29102944
{
29112945
id: 'glm-5.1',

0 commit comments

Comments
 (0)