mirror of
https://github.com/tiennm99/ccs.git
synced 2026-10-14 20:17:03 +00:00
refactor(cliproxy): remove model alias functionality
- delete model-alias-config.ts and cliproxy-alias-handler.ts - simplify sync to use ANTHROPIC_MODEL directly - remove alias routes, hooks, and UI components
This commit is contained in:
1 parent
afa3bdafce
commit
32dbd5e174
12 files changed
+92
-775
No files matched your search
@@ -64,9 +64,8 @@ import {
|
||||
installLatest,
|
||||
} from '../cliproxy/services';
|
||||
|
||||
// Import sync and alias handlers
|
||||
// Import sync handler
|
||||
import { handleSync } from './cliproxy-sync-handler';
|
||||
import { handleAlias } from './cliproxy-alias-handler';
|
||||
|
||||
// ============================================================================
|
||||
// ARGUMENT PARSING
|
||||
@@ -623,9 +622,6 @@ async function showHelp(): Promise<void> {
|
||||
['sync', 'Sync API profiles to remote CLIProxy'],
|
||||
['sync --dry-run', 'Preview sync without applying'],
|
||||
['sync --force', 'Sync without confirmation prompt'],
|
||||
['alias list', 'List model alias mappings'],
|
||||
['alias add <profile> <from> <to>', 'Add model alias'],
|
||||
['alias remove <profile> <from>', 'Remove model alias'],
|
||||
],
|
||||
],
|
||||
[
|
||||
@@ -1024,11 +1020,6 @@ export async function handleCliproxyCommand(args: string[]): Promise<void> {
|
||||
return;
|
||||
}
|
||||
|
||||
if (command === 'alias') {
|
||||
await handleAlias(remainingArgs.slice(1));
|
||||
return;
|
||||
}
|
||||
|
||||
if (command === 'stop') {
|
||||
await handleStop();
|
||||
return;
|
||||
|
||||
Reference in new issue
Block a user