feat: deprecate GLMT user-facing surfaces

This commit is contained in:
Tam Nhu Tran committed 2026-03-17 15:49:29 -04:00
1 parent 33efaa77b9
commit 5525098400
33 files changed
+404 -752

No files matched your search

+11
View File
@@ -42,6 +42,12 @@ describe('provider-presets', () => {
expect(preset?.id).toBe('km');
});
it('resolves legacy glmt preset alias to glm', () => {
const preset = getPresetById('glmt');
expect(preset?.id).toBe('glm');
expect(preset?.baseUrl).toBe('https://api.z.ai/api/anthropic');
});
it('resolves preset id with extra whitespace', () => {
const preset = getPresetById(' km ');
expect(preset?.id).toBe('km');
@@ -56,6 +62,11 @@ describe('provider-presets', () => {
expect(isValidPresetId('kimi')).toBe(true);
});
it('keeps glmt out of the canonical preset catalog while preserving alias compatibility', () => {
expect(PROVIDER_PRESETS.some((preset) => preset.id === 'glmt')).toBe(false);
expect(isValidPresetId('glmt')).toBe(true);
});
it('uses non-reserved default profile name for qwen API preset', () => {
const preset = getPresetById('qwen');
expect(preset?.defaultProfileName).toBe('qwen-api');