From 53b015223778408cf5eb4ecd5c4b73c3ef9a3c1d Mon Sep 17 00:00:00 2001 From: luvs01 Date: Tue, 11 Aug 2026 09:31:50 +0900 Subject: [PATCH] fix(providers): disable unverified Zhipu discovery --- src/providers/registry.ts | 5 +++-- tests/provider-registry-parity.test.ts | 6 ++++++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/providers/registry.ts b/src/providers/registry.ts index 375c4ada7..c4589246a 100644 --- a/src/providers/registry.ts +++ b/src/providers/registry.ts @@ -1690,6 +1690,7 @@ export const PROVIDER_REGISTRY: readonly ProviderRegistryEntry[] = [ dashboardUrl: "https://bigmodel.cn/console/usercenter/apikeys", defaultModel: "glm-4.6", models: ZHIPU_BIGMODEL_MODELS, + liveModels: false, // The GLM families here are the same ones the `zai` metadata bundle already describes, so the // bundle owns context windows and modalities for the whole list instead of a hand-copied table. jawcodeBundle: "zai", @@ -1710,8 +1711,8 @@ export const PROVIDER_REGISTRY: readonly ProviderRegistryEntry[] = [ ZHIPU_BIGMODEL_THINKING_TOGGLE_MODELS.map(id => [id, true]), ), preserveReasoningContentModels: ZHIPU_BIGMODEL_THINKING_TOGGLE_MODELS, - // No liveModels: GET /api/paas/v4/models has not been observed to answer on this host, and a - // false live claim yields an empty picker at runtime. Flip it on once someone verifies it. + // GET /api/paas/v4/models has not been observed to answer on this host, and an unverified live + // claim can yield an empty picker at runtime. Flip it on once someone verifies it. note: "Domestic BigModel pay-as-you-go endpoint (open.bigmodel.cn)", }, // BigModel's Coding Plan is a SEPARATE endpoint from the pay-as-you-go row above, and that is diff --git a/tests/provider-registry-parity.test.ts b/tests/provider-registry-parity.test.ts index 131ae199e..94b3f98f7 100644 --- a/tests/provider-registry-parity.test.ts +++ b/tests/provider-registry-parity.test.ts @@ -1025,4 +1025,10 @@ describe("free-provider directory isolation", () => { expect(map?.max, `${provider}/${model} max`).toBe("max"); } }); + + test("Zhipu BigModel keeps its static catalog until live discovery is verified", () => { + const zhipu = PROVIDER_REGISTRY.find(entry => entry.id === "zhipu-bigmodel"); + expect(zhipu?.liveModels).toBe(false); + expect(providerConfigSeed(zhipu!).liveModels).toBe(false); + }); });