mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-08-26 17:12:27 +03:00
fix(catalog): declare GLM reasoning effort tiers (#10963)
Merged after conflict resolution in modelMetadataRegistry.ts: the tip's effortTiers chain (declared efforts → declared tiers → undefined-if-thinking-declared → codex extension) now carries this PR's GLM guard as the final-fallback override — GLM-family models without a provider-declared contract get the authoritative empty tier list instead of generic OpenAI tiers. GLM/ZCode suites 40/40 on the resolved branch. Closes #10962. Thank you @xz-dev!
This commit is contained in:
@@ -26,6 +26,8 @@ function requestBody() {
|
||||
test("ZCode accepts GLM Coding Plan models and rejects unsafe/unknown ids", async () => {
|
||||
const { resolveZcodeModel } = await loadZcodeExecutor();
|
||||
assert.deepEqual(resolveZcodeModel("glm-5.2"), { ok: true, model: "glm-5.2" });
|
||||
assert.equal(resolveZcodeModel("glm-5.2-high").ok, false);
|
||||
assert.equal(resolveZcodeModel("glm-5.3-low").ok, false);
|
||||
assert.equal(resolveZcodeModel("-unexpected").ok, false);
|
||||
assert.equal(resolveZcodeModel("unknown-model").ok, false);
|
||||
});
|
||||
@@ -70,7 +72,7 @@ test("ZCode buffers the completed turn into OpenAI SSE when stream=true", async
|
||||
});
|
||||
|
||||
const result = await executor.execute({
|
||||
model: "glm-5.2-high",
|
||||
model: "glm-5.2",
|
||||
body: requestBody(),
|
||||
stream: true,
|
||||
credentials: {},
|
||||
|
||||
Reference in New Issue
Block a user