Skip to content
This repository was archived by the owner on May 15, 2026. It is now read-only.

Commit 004d409

Browse files
committed
feat: add GLM-4.7 model support to Z.ai provider
1 parent 2bb3755 commit 004d409

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

  • packages/types/src/providers

packages/types/src/providers/zai.ts

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { ZaiApiLine } from "../provider-settings.js"
55
// https://docs.z.ai/guides/llm/glm-4-32b-0414-128k
66
// https://docs.z.ai/guides/llm/glm-4.5
77
// https://docs.z.ai/guides/llm/glm-4.6
8+
// https://docs.z.ai/guides/llm/glm-4.7
89
// https://docs.z.ai/guides/overview/pricing
910
// https://bigmodel.cn/pricing
1011

@@ -107,6 +108,20 @@ export const internationalZAiModels = {
107108
description:
108109
"GLM-4.6 is Zhipu's newest model with an extended context window of up to 200k tokens, providing enhanced capabilities for processing longer documents and conversations.",
109110
},
111+
"glm-4.7": {
112+
maxTokens: 98_304,
113+
contextWindow: 200_000,
114+
supportsImages: false,
115+
supportsPromptCache: true,
116+
supportsNativeTools: true,
117+
defaultToolProtocol: "native",
118+
inputPrice: 0.6,
119+
outputPrice: 2.2,
120+
cacheWritesPrice: 0,
121+
cacheReadsPrice: 0.11,
122+
description:
123+
"GLM-4.7 is Zhipu's latest model with enhanced capabilities for reasoning, coding, and agent tasks, building upon the GLM-4.6 foundation with improved performance.",
124+
},
110125
"glm-4-32b-0414-128k": {
111126
maxTokens: 98_304,
112127
contextWindow: 131_072,
@@ -221,6 +236,20 @@ export const mainlandZAiModels = {
221236
description:
222237
"GLM-4.6 is Zhipu's newest model with an extended context window of up to 200k tokens, providing enhanced capabilities for processing longer documents and conversations.",
223238
},
239+
"glm-4.7": {
240+
maxTokens: 98_304,
241+
contextWindow: 204_800,
242+
supportsImages: false,
243+
supportsPromptCache: true,
244+
supportsNativeTools: true,
245+
defaultToolProtocol: "native",
246+
inputPrice: 0.29,
247+
outputPrice: 1.14,
248+
cacheWritesPrice: 0,
249+
cacheReadsPrice: 0.057,
250+
description:
251+
"GLM-4.7 is Zhipu's latest model with enhanced capabilities for reasoning, coding, and agent tasks, building upon the GLM-4.6 foundation with improved performance.",
252+
},
224253
} as const satisfies Record<string, ModelInfo>
225254

226255
export const ZAI_DEFAULT_TEMPERATURE = 0.6

0 commit comments

Comments
 (0)