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