Enhanced ChatGPT Clone: Features Agents, MCP, Skills, DeepSeek, Anthropic, AWS, OpenAI, Responses API, Azure, Groq, o1, GPT-5, Mistral, OpenRouter, Vertex AI, Gemini, Artifacts, AI model switching, message search, Code Interpreter, langchain, DALL-E-3, OpenAPI Actions, Functions, Secure Multi-User Auth, Presets, open-source for self-hosting. Active
TypeScript aianthropicartifactsawsazurechatgptchatgpt-cloneclaudeclonedeepseekgeminigooglegpt-5librechatmcpo1openairesponses-apivisionwebui
export interface CodeBlock {
id: string;
language: string;
content: string;
}
export const MERMAID_ARTIFACT_TYPE = 'application/vnd.mermaid' as const;
/**
* Original-file download metadata for artifacts backed by a real
* code-interpreter file (e.g. an office document whose panel preview is
* a server-rendered HTML render, not the binary itself). When present,
* the panel download button fetches this file instead of serializing
* the rendered preview `content`.
*/
export interface ArtifactDownload {
/** Original attachment name; null means the attachment supplied no filename. */
filename?: string | null;
mimeType?: string;
filepath?: string;
file_id?: string;
source?: string;
user?: string;
}
export interface Artifact {
id: string;
lastUpdateTime: number;
index?: number;
messageId?: string;
identifier?: string;
language?: string;
content?: string;
title?: string;
type?: string;
download?: ArtifactDownload;
}
export type ArtifactFiles =
| {
'App.tsx': string;
'index.tsx': string;
'/components/ui/MermaidDiagram.tsx': string;
}
| Partial<{
[x: string]: string | undefined;
}>;