Allow creating custom providers (#132)

This commit is contained in:
Will Chen
2025-05-12 15:04:42 -07:00
committed by GitHub
parent cd7eaa8ece
commit 642895f0ba
7 changed files with 341 additions and 1 deletions

View File

@@ -732,5 +732,24 @@ export class IpcClient {
return this.ipcRenderer.invoke("get-language-model-providers");
}
public async createCustomLanguageModelProvider({
id,
name,
apiBaseUrl,
envVarName,
}: {
id: string;
name: string;
apiBaseUrl: string;
envVarName?: string;
}): Promise<LanguageModelProvider> {
return this.ipcRenderer.invoke("create-custom-language-model-provider", {
id,
name,
apiBaseUrl,
envVarName,
});
}
// --- End window control methods ---
}