@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.
23 lines (19 loc) • 556 B
text/typescript
import { PortalArtifact } from '@/types/artifact';
export interface PortalFile {
chunkId?: string;
chunkText?: string;
fileId: string;
}
export interface ChatPortalState {
portalArtifact?: PortalArtifact;
portalArtifactDisplayMode?: 'code' | 'preview';
portalFile?: PortalFile;
portalMessageDetail?: string;
portalThreadId?: string;
portalToolMessage?: { id: string; identifier: string };
showPortal: boolean;
}
export const initialChatPortalState: ChatPortalState = {
portalArtifactDisplayMode: 'preview',
showPortal: false,
};