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.

35 lines (31 loc) 841 B
import { ThreadItem, ThreadType } from '@/types/topic'; export interface ChatThreadState { activeThreadId?: string; /** * is creating thread with service call */ isCreatingThread?: boolean; isCreatingThreadMessage?: boolean; newThreadMode: ThreadType; /** * if true it mean to start to fork a new thread */ startToForkThread?: boolean; threadInputMessage: string; threadLoadingIds: string[]; threadMaps: Record<string, ThreadItem[]>; threadRenamingId?: string; /** * when open thread creator, set the message id to it */ threadStartMessageId?: string; threadsInit?: boolean; } export const initialThreadState: ChatThreadState = { isCreatingThread: false, newThreadMode: ThreadType.Continuation, threadInputMessage: '', threadLoadingIds: [], threadMaps: {}, threadsInit: false, };