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: use same icon style in TextChat
Wentao Lyua47dbe62620c
diff --git a/client/src/components/Models/ModelMenu.jsx b/client/src/components/Models/ModelMenu.jsxindex 3e3333a7cc..5ef04c3ef4 100644--- a/client/src/components/Models/ModelMenu.jsx+++ b/client/src/components/Models/ModelMenu.jsx@@ -17,6 +17,7 @@ import { setText } from '~/store/textSlice';import GPTIcon from '../svg/GPTIcon';import BingIcon from '../svg/BingIcon';import { Button } from '../ui/Button.tsx';+import { getIconOfModel } from '../../utils';import {DropdownMenu,@@ -33,7 +34,7 @@ export default function ModelMenu() {const dispatch = useDispatch();const [modelSave, setModelSave] = useState(false);const [menuOpen, setMenuOpen] = useState(false);- const { model, customModel } = useSelector((state) => state.submit);+ const { model, customModel, promptPrefix, chatGptLabel } = useSelector((state) => state.submit);const { models, modelMap, initial } = useSelector((state) => state.models);const { data, isLoading, mutate } = swr(`/api/customGpts`, (res) => {const fetchedModels = res.map((modelItem) => ({@@ -138,7 +139,7 @@ export default function ModelMenu() {const isBing = model === 'bingai' || model === 'sydney';const colorProps = model === 'chatgpt' ? chatgptColorProps : defaultColorProps;- const icon = isBing ? <BingIcon button={true} /> : <GPTIcon button={true} />;+ const icon = getIconOfModel({ sender: chatGptLabel || model, isCreatedByUser: false, model, chatGptLabel, promptPrefix, error: false, className: "mr-2" });return (<Dialog onOpenChange={onOpenChange}>diff --git a/client/src/utils/index.js b/client/src/utils/index.jsindex a48f2ff3c8..4b5d66f4bb 100644--- a/client/src/utils/index.js+++ b/client/src/utils/index.js@@ -55,6 +55,8 @@ export const getIconOfModel = ({ size=30, sender, isCreatedByUser, model, chatGpchatgptCustom: 'rgb(0, 163, 255)',};+ console.log(sender, isCreatedByUser, model, chatGptLabel, error, )+if (isCreatedByUser)return (<div