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
feat: show model at the top of conversation messages.
Wentao Lyue3b0cb7db78a
diff --git a/client/src/components/Messages/index.jsx b/client/src/components/Messages/index.jsxindex 611a0231d3..27fd406425 100644--- a/client/src/components/Messages/index.jsx+++ b/client/src/components/Messages/index.jsx@@ -8,10 +8,14 @@ import { useSelector } from 'react-redux';const Messages = ({ messages, messageTree }) => {const [currentEditId, setCurrentEditId] = useState(-1);const { conversationId } = useSelector((state) => state.convo);+ const { model, customModel, chatGptLabel } = useSelector((state) => state.submit);+ const { models } = useSelector((state) => state.models);const [showScrollButton, setShowScrollButton] = useState(false);const scrollableRef = useRef(null);const messagesEndRef = useRef(null);+ const modelName = models.find(element => element.model==model)?.name+useEffect(() => {const timeoutId = setTimeout(() => {const scrollable = scrollableRef.current;@@ -60,6 +64,9 @@ const Messages = ({ messages, messageTree }) => {>{/* <div className="flex-1 overflow-hidden"> */}<div className="dark:gpt-dark-gray h-full">+ <div className="flex w-full items-center justify-center gap-1 border-b border-black/10 bg-gray-50 p-3 text-gray-500 dark:border-gray-900/50 dark:bg-gray-700 dark:text-gray-300 text-sm">+ Model: {modelName} {customModel?`(${customModel})`:null}+ </div><div className="dark:gpt-dark-gray flex h-full flex-col items-center text-sm">{messageTree.length === 0 ? (<Spinner />