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: Hide Model Spec Badge Rows (#13124)
Danny Avila738ed005b691
diff --git a/client/src/components/Chat/Input/ChatForm.tsx b/client/src/components/Chat/Input/ChatForm.tsxindex a4f4f062f5..884a9251c4 100644--- a/client/src/components/Chat/Input/ChatForm.tsx+++ b/client/src/components/Chat/Input/ChatForm.tsx@@ -21,12 +21,13 @@ import {useSubmitMessage,useFocusChatEffect,} from '~/hooks';+import PendingManualSkillsChips from './PendingManualSkillsChips';+import { cn, getModelSpec, removeFocusRings } from '~/utils';+import { useGetStartupConfig } from '~/data-provider';import { mainTextareaId, BadgeItem } from '~/common';import AttachFileChat from './Files/AttachFileChat';import FileFormChat from './Files/FileFormChat';-import { cn, removeFocusRings } from '~/utils';import TextareaHeader from './TextareaHeader';-import PendingManualSkillsChips from './PendingManualSkillsChips';import SkillsCommand from './SkillsCommand';import PromptsCommand from './PromptsCommand';import AudioRecorder from './AudioRecorder';@@ -96,11 +97,17 @@ const ChatForm = memo(function ChatForm({setConversation: setAddedConvo,} = useAddedChatContext();const assistantMap = useAssistantsMapContext();+ const { data: startupConfig } = useGetStartupConfig();const endpoint = useMemo(() => conversation?.endpointType ?? conversation?.endpoint,[conversation?.endpointType, conversation?.endpoint],);+ const modelSpec = useMemo(+ () => getModelSpec({ specName: conversation?.spec, startupConfig }),+ [conversation?.spec, startupConfig],+ );+ const hideBadgeRow = modelSpec?.hideBadgeRow === true;const conversationId = useMemo(() => conversation?.conversationId ?? Constants.NEW_CONVO,[conversation?.conversationId],@@ -355,7 +362,10 @@ const ChatForm = memo(function ChatForm({</div><BadgeRowshowEphemeralBadges={- !!endpoint && !isAgentsEndpoint(endpoint) && !isAssistantsEndpoint(endpoint)+ !!endpoint &&+ !hideBadgeRow &&+ !isAgentsEndpoint(endpoint) &&+ !isAssistantsEndpoint(endpoint)}isSubmitting={isSubmitting}conversationId={conversationId}diff --git a/librechat.example.yaml b/librechat.example.yamlindex b126f8217c..b88fff9a60 100644--- a/librechat.example.yaml+++ b/librechat.example.yaml@@ -624,6 +624,7 @@ endpoints:# label: "General Assistant"# description: "General purpose assistant"# # No 'group' field - appears as standalone item at top level (not nested)+# # hideBadgeRow: true # Optional: hides the tool badge row for this spec# preset:# endpoint: "openAI"# model: "gpt-4o-mini"diff --git a/packages/data-provider/specs/config-schemas.spec.ts b/packages/data-provider/specs/config-schemas.spec.tsindex b27f804726..5420fb7354 100644--- a/packages/data-provider/specs/config-schemas.spec.ts+++ b/packages/data-provider/specs/config-schemas.spec.ts@@ -767,11 +767,15 @@ describe('specsConfigSchema', () => {{name: 'spec-1',label: 'Spec 1',+ hideBadgeRow: true,preset: { endpoint: EModelEndpoint.openAI },},],});expect(result.success).toBe(true);+ if (result.success) {+ expect(result.data.list[0].hideBadgeRow).toBe(true);+ }});it('still rejects null list', () => {diff --git a/packages/data-provider/src/models.ts b/packages/data-provider/src/models.tsindex 6be55effde..85f455fe17 100644--- a/packages/data-provider/src/models.ts+++ b/packages/data-provider/src/models.ts@@ -32,6 +32,8 @@ export type TModelSpec = {showIconInHeader?: boolean;iconURL?: string | EModelEndpoint; // Allow using project-included iconsauthType?: AuthType;+ /** Hide the chat input tool badge row while this model spec is active. */+ hideBadgeRow?: boolean;webSearch?: boolean;fileSearch?: boolean;executeCode?: boolean;@@ -52,6 +54,7 @@ export const tModelSpecSchema = z.object({showIconInHeader: z.boolean().optional(),iconURL: z.union([z.string(), eModelEndpointSchema]).optional(),authType: authTypeSchema.optional(),+ hideBadgeRow: z.boolean().optional(),webSearch: z.boolean().optional(),fileSearch: z.boolean().optional(),executeCode: z.boolean().optional(),