fix: narrow legacy GLMT base URL normalization (#1376)

* fix: narrow legacy glmt base url normalization

* style: apply prettier formatting
This commit is contained in:
Kai (Tam Nhu) Tran authored and GitHub committed 2026-05-23 21:45:02 -04:00
1 parent b0a754179c
commit 781c84b04b
2 files changed
+4 -5

No files matched your search

@@ -20,6 +20,9 @@ describe('glmt deprecation helpers', () => {
expect(isLegacyGlmtBaseUrl('https://api.z.ai/api/coding/paas/v4/chat/completions/')).toBe(
true
);
expect(isLegacyGlmtBaseUrl('https://private.example.internal/v1/chat/completions')).toBe(
false
);
expect(isLegacyGlmtBaseUrl('https://api.z.ai/api/anthropic')).toBe(false);
});