@lobehub/chat
Version:
Lobe Chat - an open-source, high-performance chatbot framework that supports speech synthesis, multimodal, and extensible Function Call plugin system. Supports one-click free deployment of your private ChatGPT/LLM web application.
11 lines (9 loc) • 331 B
text/typescript
import { ClientDispatchEventKey, DispatchInvoke } from '@lobechat/electron-client-ipc';
import { ipcRenderer } from 'electron';
/**
* client 端请求 electron main 端方法
*/
export const invoke: DispatchInvoke = async <T extends ClientDispatchEventKey>(
event: T,
...data: any[]
) => ipcRenderer.invoke(event, ...data);