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.

16 lines (12 loc) 458 B
import { desktopClient } from '@/libs/trpc/client/desktop'; export class DesktopService { getAllTables = async () => { return desktopClient.pgTable.getAllTables.query(); }; getTableDetails = async (tableName: string) => { return desktopClient.pgTable.getTableDetails.query({ tableName }); }; getTableData = async (tableName: string) => { return desktopClient.pgTable.getTableData.query({ page: 1, pageSize: 300, tableName }); }; }