test: sequence zai model ids

This commit is contained in:
Shakker
2026-05-12 19:08:18 +01:00
parent d548adb610
commit 23725bf11f

View File

@@ -10,11 +10,21 @@ describe("zai onboard", () => {
expect(cfg.models?.providers?.zai?.baseUrl).toBe(ZAI_GLOBAL_BASE_URL);
expect(cfg.models?.providers?.zai?.api).toBe("openai-completions");
const ids = cfg.models?.providers?.zai?.models?.map((m) => m.id);
expect(ids).toContain("glm-5");
expect(ids).toContain("glm-5-turbo");
expect(ids).toContain("glm-4.7");
expect(ids).toContain("glm-4.7-flash");
expect(ids).toContain("glm-4.7-flashx");
expect(ids).toEqual([
"glm-5.1",
"glm-5",
"glm-5-turbo",
"glm-5v-turbo",
"glm-4.7",
"glm-4.7-flash",
"glm-4.7-flashx",
"glm-4.6",
"glm-4.6v",
"glm-4.5",
"glm-4.5-air",
"glm-4.5-flash",
"glm-4.5v",
]);
});
it("supports CN endpoint for supported coding models", () => {