Skip to content

Never stop coding. Free MIT AI gateway: one endpoint, 375 providers (150+ free), 1,400+ models Kimi, Claude, GPT, Gemini, GLM, DeepSeek, MiniMax. Works with Claude Code, Codex, Cursor, OpenCode, Cline & Copilot. Quota-aware auto-fallback, RTK+Caveman compression saves 15-95% tokens, MCP/A2A, Desktop/PWA. Built by 900+ contributors

fix: add GLM-4.7-FlashX model and correct GLM-4.7 tool calling support

Chris Staley0f4a7b24051a
diff --git a/open-sse/config/providerRegistry.ts b/open-sse/config/providerRegistry.ts
index 771f33fa16..6f6d2c45f1 100644
--- a/open-sse/config/providerRegistry.ts
+++ b/open-sse/config/providerRegistry.ts
@@ -635,6 +635,7 @@ export const REGISTRY: Record<string, RegistryEntry> = {
{ id: "glm-5.1", name: "GLM 5.1" },
{ id: "glm-5", name: "GLM 5" },
{ id: "glm-5-turbo", name: "GLM 5 Turbo" },
+ { id: "glm-4.7-flashx", name: "GLM 4.7 FlashX" },
{ id: "glm-4.7-flash", name: "GLM 4.7 Flash" },
{ id: "glm-4.7", name: "GLM 4.7" },
{ id: "glm-4.6v", name: "GLM 4.6V (Vision)" },
diff --git a/open-sse/services/modelCapabilities.ts b/open-sse/services/modelCapabilities.ts
index b3822e9672..7cd47e232f 100644
--- a/open-sse/services/modelCapabilities.ts
+++ b/open-sse/services/modelCapabilities.ts
@@ -3,12 +3,7 @@ import { parseModel } from "./model.ts";
// Conservative denylist fallback used when registry metadata is absent.
// Keep small and explicit to avoid false negatives.
-const TOOL_CALLING_UNSUPPORTED_PATTERNS = [
- "gpt-oss-120b",
- "deepseek-reasoner",
- "glm-4.7",
- "glm4.7",
-];
+const TOOL_CALLING_UNSUPPORTED_PATTERNS = ["gpt-oss-120b", "deepseek-reasoner"];
function getRegistryToolCallingFlag(providerIdOrAlias: string, modelId: string): boolean | null {
const providerAlias = PROVIDER_ID_TO_ALIAS[providerIdOrAlias] || providerIdOrAlias;
diff --git a/src/shared/constants/pricing.ts b/src/shared/constants/pricing.ts
index 789ae0a06a..d0cffb4547 100644
--- a/src/shared/constants/pricing.ts
+++ b/src/shared/constants/pricing.ts
@@ -750,6 +750,13 @@ export const DEFAULT_PRICING = {
reasoning: 4.0,
cache_creation: 1.2,
},
+ "glm-4.7-flashx": {
+ input: 0.3,
+ output: 1.1,
+ cached: 0.06,
+ reasoning: 1.1,
+ cache_creation: 0.3,
+ },
"glm-4.7-flash": {
input: 0,
output: 0,