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.

14 lines (12 loc) 454 B
import { CheckFileHashResult, FileItem, UploadFileParams } from '@/types/files'; export interface IFileService { checkFileHash(hash: string): Promise<CheckFileHashResult>; createFile( file: UploadFileParams, knowledgeBaseId?: string, ): Promise<{ id: string; url: string }>; getFile(id: string): Promise<FileItem>; removeAllFiles(): Promise<any>; removeFile(id: string): Promise<void>; removeFiles(ids: string[]): Promise<void>; }