mirror of
https://github.com/tiennm99/ccs.git
synced 2026-10-16 22:14:21 +00:00
feat: deprecate GLMT user-facing surfaces
This commit is contained in:
1 parent
33efaa77b9
commit
5525098400
33 files changed
+404
-752
No files matched your search
@@ -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');
|
||||
|
||||
Reference in new issue
Block a user