Add stop button

This commit is contained in:
2024-03-09 15:22:44 -05:00
parent d2470b2dd6
commit bdf5715868
6 changed files with 54 additions and 11 deletions

View File

@@ -75,4 +75,8 @@ const kuzcoCore = new KuzcoCore();
ipcMain.handle('send-prompt', async (event, { prompt, model }) => {
console.log("Received model in main process:", model);
return await kuzcoCore.sendPrompt(prompt, model);
});
ipcMain.on('abort-prompt', () => {
kuzcoCore.abortFetch();
});