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
import { createContext, useContext } from 'react';
import type { TAttachment } from 'librechat-data-provider';
type MediaContext = {
/**
* The turn's attachments, addressable by the filename a markdown image
* names them with. A model that writes `` is referring to
* a file the run produced, not to a path the browser can fetch, so the
* markdown renderer resolves the reference through this map.
*/
attachmentsByName?: ReadonlyMap<string, TAttachment>;
};
export const MediaContext = createContext<MediaContext>({});
export const useMediaContext = () => useContext(MediaContext);