From 03ab554d1c0c089f392ff573020fa7b61e799bac Mon Sep 17 00:00:00 2001 From: zx07 Date: Fri, 13 Feb 2026 20:37:13 +0800 Subject: [PATCH] feat: add support for GLM 5 (if) (#123) (cherry picked from commit e26d65aa55726e330f6806aa1abfe05ac6801619) Co-authored-by: zx --- open-sse/config/providerModels.js | 1 + src/shared/constants/pricing.js | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/open-sse/config/providerModels.js b/open-sse/config/providerModels.js index ad97b47a..925f9aec 100644 --- a/open-sse/config/providerModels.js +++ b/open-sse/config/providerModels.js @@ -53,6 +53,7 @@ export const PROVIDER_MODELS = { { id: "minimax-m2.1", name: "MiniMax M2.1" }, { id: "glm-4.7", name: "GLM 4.7" }, { id: "glm-4.6", name: "GLM 4.6" }, + { id: "glm-5", name: "GLM 5" }, ], ag: [ // Antigravity - special case: models call different backends { id: "claude-opus-4-6-thinking", name: "Claude Opus 4.6 Thinking" }, diff --git a/src/shared/constants/pricing.js b/src/shared/constants/pricing.js index 4e9506a4..6e756d97 100644 --- a/src/shared/constants/pricing.js +++ b/src/shared/constants/pricing.js @@ -218,6 +218,13 @@ export const DEFAULT_PRICING = { cached: 0.375, reasoning: 4.50, cache_creation: 0.75 + }, + "glm-5": { + input: 1.00, + output: 4.00, + cached: 0.50, + reasoning: 6.00, + cache_creation: 1.00 } },