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.

21 lines (16 loc) 626 B
/* eslint-disable typescript-sort-keys/interface */ import { CreateMessageParams } from '@/types/message'; import { CreateThreadParams, ThreadItem } from '@/types/topic'; interface CreateThreadWithMessageParams extends CreateThreadParams { message: CreateMessageParams; } export interface IThreadService { getThreads(topicId: string): Promise<ThreadItem[]>; createThreadWithMessage({ message, ...params }: CreateThreadWithMessageParams): Promise<{ messageId: string; threadId: string }>; updateThread(id: string, data: Partial<ThreadItem>): Promise<any>; // removeThread(id: string): Promise<any>; }