chore: remove ccw-litellm UI components (dead code)

The LiteLLM Python bridge was already removed (litellm-client.ts is a
stub). Remove the orphaned frontend components:
- CcwLitellmStatus component and LitellmInstallProgressOverlay
- API functions (checkCcwLitellmStatus, installCcwLitellm, uninstallCcwLitellm)
- React Query hooks (useCcwLitellmStatus, useInstallCcwLitellm, useUninstallCcwLitellm)
- Locale entries (zh/en api-settings.json ccwLitellm section)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
catlog22
2026-03-19 20:24:45 +08:00
parent 28e9701fe1
commit e1c7192509
8 changed files with 1 additions and 647 deletions

View File

@@ -5636,54 +5636,6 @@ export async function previewYamlConfig(): Promise<{ success: boolean; config: s
return fetchApi('/api/litellm-api/config/yaml-preview');
}
// ========== CCW-LiteLLM Package Management ==========
export interface CcwLitellmEnvCheck {
python: string;
installed: boolean;
version?: string;
error?: string;
}
export interface CcwLitellmStatus {
/**
* Whether ccw-litellm is installed in the CodexLens venv.
* This is the environment used for the LiteLLM embedding backend.
*/
installed: boolean;
version?: string;
error?: string;
checks?: {
codexLensVenv: CcwLitellmEnvCheck;
systemPython?: CcwLitellmEnvCheck;
};
}
/**
* Check ccw-litellm status
*/
export async function checkCcwLitellmStatus(refresh = false): Promise<CcwLitellmStatus> {
return fetchApi(`/api/litellm-api/ccw-litellm/status${refresh ? '?refresh=true' : ''}`);
}
/**
* Install ccw-litellm
*/
export async function installCcwLitellm(): Promise<{ success: boolean; message?: string; error?: string; path?: string }> {
return fetchApi('/api/litellm-api/ccw-litellm/install', {
method: 'POST',
});
}
/**
* Uninstall ccw-litellm
*/
export async function uninstallCcwLitellm(): Promise<{ success: boolean; message?: string; error?: string }> {
return fetchApi('/api/litellm-api/ccw-litellm/uninstall', {
method: 'POST',
});
}
// ========== CLI Settings Management ==========
/**