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
🔧 fix: EndpointIcon crash when using `@` mention command (#3742)
Danny Avila366e4c5adbaf
diff --git a/client/src/components/Endpoints/EndpointIcon.tsx b/client/src/components/Endpoints/EndpointIcon.tsxindex 5c7c89a5db..caa6fe6ede 100644--- a/client/src/components/Endpoints/EndpointIcon.tsx+++ b/client/src/components/Endpoints/EndpointIcon.tsx@@ -31,40 +31,42 @@ export default function EndpointIcon({const endpointType = getEndpointField(endpointsConfig, endpoint, 'type');const endpointIconURL = getEndpointField(endpointsConfig, endpoint, 'iconURL');- const assistant =- isAssistantsEndpoint(endpoint) && assistantMap?.[endpoint]?.[conversation?.assistant_id ?? ''];- const assistantAvatar = (assistant && (assistant?.metadata?.avatar as string)) || '';- const assistantName = (assistant && assistant?.name) || '';+ const assistant = isAssistantsEndpoint(endpoint)+ ? assistantMap?.[endpoint]?.[conversation?.assistant_id ?? '']+ : null;+ const assistantAvatar = (assistant && (assistant.metadata?.avatar as string)) || '';+ const assistantName = assistant && (assistant.name ?? '');const iconURL = assistantAvatar || convoIconURL;- let icon: React.ReactNode | null = null;if (iconURL && (iconURL.includes('http') || iconURL.startsWith('/images/'))) {- icon = ConvoIconURL({- preset: {- ...(conversation as TPreset),- iconURL,- },- context,- endpointIconURL,- assistantAvatar,- assistantName,- });+ return (+ <ConvoIconURL+ preset={{+ ...(conversation as TPreset),+ iconURL,+ }}+ context={context}+ endpointIconURL={endpointIconURL}+ assistantAvatar={assistantAvatar}+ assistantName={assistantName ?? ''}+ />+ );} else {- icon = MinimalIcon({- size: 20,- iconURL: endpointIconURL,- endpoint,- endpointType,- model: conversation?.model,- error: false,- className,- isCreatedByUser: false,- chatGptLabel: undefined,- modelLabel: undefined,- jailbreak: undefined,- });+ return (+ <MinimalIcon+ size={20}+ iconURL={endpointIconURL}+ endpoint={endpoint}+ endpointType={endpointType}+ model={conversation?.model}+ error={false}+ className={className}+ isCreatedByUser={false}+ chatGptLabel={undefined}+ modelLabel={undefined}+ jailbreak={undefined}+ />+ );}-- return icon;}