UNPKG

@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.

41 lines (34 loc) 884 B
import { DataSyncConfig, dispatch } from '@lobechat/electron-client-ipc'; class RemoteServerService { /** * 获取远程服务器配置 */ getRemoteServerConfig = async () => { return dispatch('getRemoteServerConfig'); }; /** * 设置远程服务器配置 */ setRemoteServerConfig = async (config: DataSyncConfig) => { return dispatch('setRemoteServerConfig', config); }; /** * 清除远程服务器配置 */ clearRemoteServerConfig = async () => { return dispatch('clearRemoteServerConfig'); }; /** * 请求授权 */ requestAuthorization = async (config: DataSyncConfig) => { return dispatch('requestAuthorization', config); }; /** * 刷新访问令牌 */ refreshAccessToken = async () => { return dispatch('refreshAccessToken'); }; } export const remoteServerService = new RemoteServerService();