mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-10-06 02:47:56 +00:00
Merge a5025ae8cb into c3cae397a1
This commit is contained in:
commit
58739efcd6
2 changed files with 18 additions and 12 deletions
5
.changeset/glm-5-correct-specs.md
Normal file
5
.changeset/glm-5-correct-specs.md
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
---
|
||||||
|
"@roo-code/types": patch
|
||||||
|
---
|
||||||
|
|
||||||
|
Update GLM-5 model specs for Z.ai provider with correct pricing and token limits from official docs (https://docs.z.ai/guides/llm/glm-5)
|
||||||
|
|
@ -5,6 +5,7 @@ import { ZaiApiLine } from "../provider-settings.js"
|
||||||
// https://docs.z.ai/guides/llm/glm-4-32b-0414-128k
|
// https://docs.z.ai/guides/llm/glm-4-32b-0414-128k
|
||||||
// https://docs.z.ai/guides/llm/glm-4.5
|
// https://docs.z.ai/guides/llm/glm-4.5
|
||||||
// https://docs.z.ai/guides/llm/glm-4.6
|
// https://docs.z.ai/guides/llm/glm-4.6
|
||||||
|
// https://docs.z.ai/guides/llm/glm-5
|
||||||
// https://docs.z.ai/guides/overview/pricing
|
// https://docs.z.ai/guides/overview/pricing
|
||||||
// https://bigmodel.cn/pricing
|
// https://bigmodel.cn/pricing
|
||||||
|
|
||||||
|
|
@ -121,19 +122,19 @@ export const internationalZAiModels = {
|
||||||
"GLM-4.7 is Zhipu's latest model with built-in thinking capabilities enabled by default. It provides enhanced reasoning for complex tasks while maintaining fast response times.",
|
"GLM-4.7 is Zhipu's latest model with built-in thinking capabilities enabled by default. It provides enhanced reasoning for complex tasks while maintaining fast response times.",
|
||||||
},
|
},
|
||||||
"glm-5": {
|
"glm-5": {
|
||||||
maxTokens: 16_384,
|
maxTokens: 128_000,
|
||||||
contextWindow: 202_752,
|
contextWindow: 200_000,
|
||||||
supportsImages: false,
|
supportsImages: false,
|
||||||
supportsPromptCache: true,
|
supportsPromptCache: true,
|
||||||
supportsReasoningEffort: ["disable", "medium"],
|
supportsReasoningEffort: ["disable", "medium"],
|
||||||
reasoningEffort: "medium",
|
reasoningEffort: "medium",
|
||||||
preserveReasoning: true,
|
preserveReasoning: true,
|
||||||
inputPrice: 0.6,
|
inputPrice: 1.0,
|
||||||
outputPrice: 2.2,
|
outputPrice: 3.2,
|
||||||
cacheWritesPrice: 0,
|
cacheWritesPrice: 0,
|
||||||
cacheReadsPrice: 0.11,
|
cacheReadsPrice: 0.2,
|
||||||
description:
|
description:
|
||||||
"GLM-5 is Zhipu's next-generation model with a 202k context window and built-in thinking capabilities. It delivers state-of-the-art reasoning, coding, and agentic performance.",
|
"GLM-5 is Zhipu's next-generation model with a 200k context window, 128k max output, and built-in thinking capabilities. It delivers state-of-the-art reasoning, coding, and agentic performance.",
|
||||||
},
|
},
|
||||||
"glm-4.7-flash": {
|
"glm-4.7-flash": {
|
||||||
maxTokens: 16_384,
|
maxTokens: 16_384,
|
||||||
|
|
@ -297,19 +298,19 @@ export const mainlandZAiModels = {
|
||||||
"GLM-4.7 is Zhipu's latest model with built-in thinking capabilities enabled by default. It provides enhanced reasoning for complex tasks while maintaining fast response times.",
|
"GLM-4.7 is Zhipu's latest model with built-in thinking capabilities enabled by default. It provides enhanced reasoning for complex tasks while maintaining fast response times.",
|
||||||
},
|
},
|
||||||
"glm-5": {
|
"glm-5": {
|
||||||
maxTokens: 16_384,
|
maxTokens: 128_000,
|
||||||
contextWindow: 202_752,
|
contextWindow: 200_000,
|
||||||
supportsImages: false,
|
supportsImages: false,
|
||||||
supportsPromptCache: true,
|
supportsPromptCache: true,
|
||||||
supportsReasoningEffort: ["disable", "medium"],
|
supportsReasoningEffort: ["disable", "medium"],
|
||||||
reasoningEffort: "medium",
|
reasoningEffort: "medium",
|
||||||
preserveReasoning: true,
|
preserveReasoning: true,
|
||||||
inputPrice: 0.29,
|
inputPrice: 0.48,
|
||||||
outputPrice: 1.14,
|
outputPrice: 1.66,
|
||||||
cacheWritesPrice: 0,
|
cacheWritesPrice: 0,
|
||||||
cacheReadsPrice: 0.057,
|
cacheReadsPrice: 0.1,
|
||||||
description:
|
description:
|
||||||
"GLM-5 is Zhipu's next-generation model with a 202k context window and built-in thinking capabilities. It delivers state-of-the-art reasoning, coding, and agentic performance.",
|
"GLM-5 is Zhipu's next-generation model with a 200k context window, 128k max output, and built-in thinking capabilities. It delivers state-of-the-art reasoning, coding, and agentic performance.",
|
||||||
},
|
},
|
||||||
"glm-4.7-flash": {
|
"glm-4.7-flash": {
|
||||||
maxTokens: 16_384,
|
maxTokens: 16_384,
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue