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

@@ -3,4 +3,5 @@ const { contextBridge, ipcRenderer } = require('electron');
contextBridge.exposeInMainWorld('electronAPI', {
sendPrompt: (prompt, model) => ipcRenderer.invoke('send-prompt', { prompt, model }),
onApiKeySaved: (callback) => ipcRenderer.on('api-key-saved', callback),
abortPrompt: () => ipcRenderer.send('abort-prompt')
});