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.

17 lines (13 loc) 485 B
import { lambdaClient } from '@/libs/trpc/client'; class GenerationService { async getGenerationStatus(generationId: string, asyncTaskId: string) { return lambdaClient.generation.getGenerationStatus.query({ asyncTaskId, generationId }); } /** * Delete a single generation */ async deleteGeneration(generationId: string) { return lambdaClient.generation.deleteGeneration.mutate({ generationId }); } } export const generationService = new GenerationService();