Support delete custom model (#136)

This commit is contained in:
Will Chen
2025-05-12 16:37:39 -07:00
committed by GitHub
parent e115074937
commit ea9301c771
8 changed files with 664 additions and 19 deletions

View File

@@ -58,6 +58,11 @@ export interface DeepLinkData {
url?: string;
}
interface DeleteCustomModelParams {
providerId: string;
modelApiName: string;
}
export class IpcClient {
private static instance: IpcClient;
private ipcRenderer: IpcRenderer;
@@ -761,5 +766,17 @@ export class IpcClient {
await this.ipcRenderer.invoke("create-custom-language-model", params);
}
public async deleteCustomLanguageModel(modelId: string): Promise<void> {
return this.ipcRenderer.invoke("delete-custom-language-model", modelId);
}
async deleteCustomModel(params: DeleteCustomModelParams): Promise<void> {
return this.ipcRenderer.invoke("delete-custom-model", params);
}
// --- End window control methods ---
// --- Language Model Operations ---
// --- App Operations ---
}