mirror of
https://github.com/tiennm99/ccs.git
synced 2026-10-12 20:15:40 +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
@@ -36,6 +36,17 @@ function resolvePresetOrExit(presetId?: string): ProviderPreset | null {
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
function showPresetDeprecationNotice(presetId?: string): void {
|
||||
if ((presetId || '').trim().toLowerCase() !== 'glmt') {
|
||||
return;
|
||||
}
|
||||
|
||||
console.log(warn('Preset "glmt" is deprecated and now maps to the direct "glm" preset.'));
|
||||
console.log(dim(' Z.AI models already expose thinking natively, so CCS no longer needs GLMT.'));
|
||||
console.log(dim(' Update scripts/docs to: ccs api create --preset glm'));
|
||||
console.log('');
|
||||
}
|
||||
|
||||
async function resolveProfileName(
|
||||
providedName: string | undefined,
|
||||
preset: ProviderPreset | null
|
||||
@@ -237,6 +248,7 @@ export async function handleApiCreateCommand(args: string[]): Promise<void> {
|
||||
console.log(header('Create API Profile'));
|
||||
console.log('');
|
||||
|
||||
showPresetDeprecationNotice(parsedArgs.preset);
|
||||
const preset = resolvePresetOrExit(parsedArgs.preset);
|
||||
const name = await resolveProfileName(parsedArgs.name, preset);
|
||||
|
||||
|
||||
Reference in new issue
Block a user