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
🎨 refactor: Draw Lemonade, MLX, ShuttleAI and Unify as Brand Marks (#17252)
Marco Beretta805a69a82ec4
diff --git a/client/src/components/Chat/Menus/Endpoints/components/__tests__/GroupIcon.test.tsx b/client/src/components/Chat/Menus/Endpoints/components/__tests__/GroupIcon.test.tsxindex bf1ad0cae9..6d04d2c167 100644--- a/client/src/components/Chat/Menus/Endpoints/components/__tests__/GroupIcon.test.tsx+++ b/client/src/components/Chat/Menus/Endpoints/components/__tests__/GroupIcon.test.tsx@@ -25,13 +25,12 @@ describe('GroupIcon', () => {expect(screen.getByRole('img', { name: 'OpenRouter' })).toBeInTheDocument();});- it('resolves known endpoint asset aliases to shipped file paths', () => {+ it('resolves the Lemonade alias to its mark', () => {render(<GroupIcon iconURL="Lemonade" groupName="Lemonade" />);- expect(screen.getByRole('img', { name: 'AMD Lemonade' })).toHaveAttribute(- 'src',- 'assets/lemonade.png',- );+ const icon = screen.getByRole('img', { name: 'AMD Lemonade' });+ expect(icon).not.toHaveAttribute('src');+ expect(icon.querySelector('svg')).toHaveAttribute('fill', 'currentColor');});it('renders known endpoint aliases backed by components', () => {diff --git a/packages/client/src/icons/provider/Icon.spec.tsx b/packages/client/src/icons/provider/Icon.spec.tsxindex fe8519d978..0a2a25ae04 100644--- a/packages/client/src/icons/provider/Icon.spec.tsx+++ b/packages/client/src/icons/provider/Icon.spec.tsx@@ -15,14 +15,6 @@ describe('ProviderIcon', () => {expect(container.querySelector('svg')).toHaveAttribute('fill', 'currentColor');});- it('renders asset art as an image from the packaged module', () => {- render(<ProviderIcon provider={ProviderId.lemonade} />);- expect(screen.getByRole('img', { name: 'AMD Lemonade' })).toHaveAttribute(- 'src',- 'assets/lemonade.png',- );- });-it('gives monochrome art a theme token so it follows light and dark', () => {const { container } = render(<ProviderIcon provider={ProviderId.xai} />);expect(container.firstChild).toHaveClass('text-text-primary');diff --git a/packages/client/src/icons/provider/Icon.tsx b/packages/client/src/icons/provider/Icon.tsxindex b5a79bb188..1e4b4967fe 100644--- a/packages/client/src/icons/provider/Icon.tsx+++ b/packages/client/src/icons/provider/Icon.tsx@@ -26,29 +26,16 @@ function ProviderIconComponent({className,);- if (def.art.kind === 'component') {- const { Component } = def.art;- return (- <span- role="img"- aria-label={def.label}- style={{ width: pxToRem(size), height: pxToRem(size) }}- className={cn('inline-flex items-center justify-center', classes)}- >- <Component size={size} className={cn(classes, 'h-full w-full')} />- </span>- );- }-+ const { Component } = def.art;return (- <img- src={def.art.src}- alt={def.label}- width={size}- height={size}+ <span+ role="img"+ aria-label={def.label}style={{ width: pxToRem(size), height: pxToRem(size) }}- className={cn('object-contain', classes)}- />+ className={cn('inline-flex items-center justify-center', classes)}+ >+ <Component size={size} className={cn(classes, 'h-full w-full')} />+ </span>);}diff --git a/packages/client/src/icons/provider/assets/lemonade.png b/packages/client/src/icons/provider/assets/lemonade.pngdeleted file mode 100644index 78f2ff0095..0000000000Binary files a/packages/client/src/icons/provider/assets/lemonade.png and /dev/null differdiff --git a/packages/client/src/icons/provider/assets/mlx.png b/packages/client/src/icons/provider/assets/mlx.pngdeleted file mode 100644index 06a77c9b6c..0000000000Binary files a/packages/client/src/icons/provider/assets/mlx.png and /dev/null differdiff --git a/packages/client/src/icons/provider/assets/shuttleai.png b/packages/client/src/icons/provider/assets/shuttleai.pngdeleted file mode 100644index 411b5ad340..0000000000Binary files a/packages/client/src/icons/provider/assets/shuttleai.png and /dev/null differdiff --git a/packages/client/src/icons/provider/assets/unify.webp b/packages/client/src/icons/provider/assets/unify.webpdeleted file mode 100644index dbb233a2fd..0000000000Binary files a/packages/client/src/icons/provider/assets/unify.webp and /dev/null differdiff --git a/packages/client/src/icons/provider/marks.ts b/packages/client/src/icons/provider/marks.tsindex de0bec8ad1..e57f06b1a2 100644--- a/packages/client/src/icons/provider/marks.ts+++ b/packages/client/src/icons/provider/marks.ts@@ -19,16 +19,20 @@ export type BrandMarkId =| 'helicone'| 'huggingface'| 'ibm'+ | 'lemonade'| 'meta'| 'microsoft'| 'minimax'| 'mistral'+ | 'mlx'| 'nvidia'| 'ollama'| 'openrouter'| 'perplexity'| 'qwen'+ | 'shuttleai'| 'together'+ | 'unify'| 'vercel'| 'zhipu';@@ -165,6 +169,15 @@ export const brandMarks: Record<BrandMarkId, BrandMark> = {},],},+ /** https://github.com/lemonade-sdk/lemonade (src/app/assets/logo.svg, flattened to its outline) */+ lemonade: {+ viewBox: '0 0 32 32',+ paths: [+ {+ d: 'M7.03604 2.49169L2 5.00962C2.82591 7.34634 5.52523 8.53484 8.04325 7.52763L14.0865 5.00967C13.2606 2.66287 9.85018 1.17686 7.03604 2.49169Z M14.9236 4.5997C9.51985 6.50701 6.6904 12.4499 8.59216 17.8694L9.84454 21.4282C11.2477 25.4172 14.8309 28.0107 18.7736 28.3363C19.5157 28.3945 20.2115 28.7201 20.7681 29.2202C21.5682 29.9413 22.7162 30.2087 23.7947 29.8249C24.8731 29.4412 25.6037 28.5108 25.7776 27.4525C25.8936 26.7082 26.2299 26.0336 26.7749 25.5103C29.6391 22.7656 30.8103 18.4974 29.4072 14.5084L28.1548 10.9496C26.2531 5.51849 20.3274 2.68077 14.9236 4.5997Z',+ },+ ],+ },/** simple-icons meta */meta: {viewBox: '0 0 24 24',@@ -201,6 +214,15 @@ export const brandMarks: Record<BrandMarkId, BrandMark> = {},],},+ /** https://github.com/ml-explore/mlx (docs/logo/mlx_logo.svg) */+ mlx: {+ viewBox: '0 0 433.19 139.72',+ paths: [+ {+ d: 'M 13.94 139.72 L 42.31 139.72 L 42.31 47.92 L 43.67 47.92 L 78.72 139.72 L 97.98 139.72 L 133.03 47.92 L 134.39 47.92 L 134.39 139.72 L 162.77 139.72 L 162.77 0 L 125.97 0 L 88.98 97.7 L 87.81 97.7 L 50.73 0 L 13.94 0 Z M 13.94 139.72 M 190.62 139.72 L 282.9 139.72 L 282.9 113.67 L 222.67 113.67 L 222.67 0 L 190.62 0 Z M 190.62 139.72 M 296.87 139.72 L 331.13 139.72 L 360.09 92.38 L 361.05 92.38 L 390.19 139.72 L 426.41 139.72 L 381.68 69.91 L 381.68 69.42 L 426.9 0 L 391.27 0 L 363.57 49 L 362.41 49 L 334.52 0 L 297.05 0 L 340.54 69.03 L 340.54 69.42 Z M 296.87 139.72',+ },+ ],+ },/** simple-icons nvidia */nvidia: {viewBox: '0 0 24 24',@@ -246,6 +268,15 @@ export const brandMarks: Record<BrandMarkId, BrandMark> = {},],},+ /** https://docs.shuttleai.com (logo/light.svg, the rocket without its tile) */+ shuttleai: {+ viewBox: '0 0 512 512',+ paths: [+ {+ d: 'M 412.78 -0.2 C 414.29 -0.21 414.29 -0.21 415.82 -0.22 C 419.05 -0.24 422.27 -0.25 425.5 -0.25 C 427.15 -0.25 427.15 -0.25 428.83 -0.25 C 445.07 -0.25 460.97 0.16 477 3 C 477.71 3.12 478.43 3.23 479.16 3.36 C 489.12 5.04 496.07 8.28 502.68 15.96 C 506.99 22.61 507.98 29.53 509.12 37.25 C 509.29 38.32 509.46 39.39 509.64 40.49 C 511.24 50.89 512.15 61.17 512.2 71.7 C 512.21 72.68 512.22 73.66 512.22 74.67 C 512.45 115.87 512.45 115.87 509 134 C 508.7 135.6 508.7 135.6 508.4 137.24 C 497.01 196.7 465.54 252.86 417 290 C 415.55 291.16 415.55 291.16 414.07 292.34 C 407.67 297.39 401.08 302.08 394.31 306.62 C 393.52 307.16 392.73 307.69 391.92 308.24 C 391.18 308.73 390.44 309.22 389.68 309.73 C 389.01 310.17 388.35 310.6 387.67 311.06 C 386 312 386 312 384 312 C 384.01 313.14 384.02 314.29 384.03 315.47 C 384.11 326.31 384.17 337.15 384.21 347.99 C 384.23 353.56 384.26 359.14 384.3 364.71 C 384.35 370.1 384.37 375.48 384.38 380.87 C 384.39 382.92 384.4 384.96 384.42 387.01 C 384.65 409.56 380.31 429.21 364 446 C 355.26 453.46 345.78 459.39 335.88 465.12 C 334.47 465.95 333.06 466.78 331.65 467.6 C 328.8 469.28 325.95 470.94 323.09 472.61 C 317.1 476.1 311.15 479.65 305.19 483.19 C 303.01 484.48 300.82 485.77 298.64 487.06 C 294.6 489.46 290.56 491.86 286.53 494.27 C 284.08 495.73 281.64 497.18 279.2 498.64 C 277.5 499.65 275.8 500.67 274.1 501.69 C 254.04 513.64 254.04 513.64 241 512 C 234.33 510.27 229.83 505.56 226 500 C 224.41 496.57 223.75 493.88 223.76 490.11 C 223.76 488.67 223.76 488.67 223.75 487.21 C 223.76 485.65 223.76 485.65 223.77 484.06 C 223.77 482.96 223.77 481.85 223.77 480.72 C 223.77 477.08 223.79 473.43 223.8 469.79 C 223.81 467.27 223.81 464.74 223.81 462.21 C 223.82 456.25 223.84 450.28 223.86 444.31 C 223.88 437.52 223.89 430.72 223.9 423.92 C 223.92 409.95 223.96 395.97 224 382 C 222.97 382.36 221.94 382.72 220.89 383.09 C 217.02 384.43 213.15 385.75 209.28 387.07 C 207.61 387.64 205.95 388.22 204.29 388.8 C 178.98 397.62 178.98 397.62 167 393 C 159.93 389.41 154.31 384.9 148.76 379.29 C 148.03 378.57 147.3 377.84 146.55 377.1 C 145.03 375.57 143.51 374.05 141.99 372.52 C 139.69 370.19 137.36 367.89 135.04 365.58 C 133.55 364.09 132.06 362.6 130.57 361.11 C 129.89 360.43 129.2 359.75 128.49 359.05 C 121.13 351.54 115.79 342.82 115.57 332.05 C 115.7 324.21 118.09 317.45 120.81 310.19 C 121.27 308.92 121.73 307.65 122.18 306.38 C 123.94 301.5 125.76 296.64 127.58 291.79 C 127.85 291.08 128.11 290.37 128.39 289.63 C 128.59 289.09 128.79 288.55 129 288 C 128.43 288 127.86 288.01 127.27 288.01 C 113.38 288.1 99.49 288.17 85.61 288.21 C 78.89 288.23 72.17 288.26 65.46 288.3 C 58.97 288.35 52.49 288.37 46 288.38 C 43.53 288.39 41.06 288.4 38.59 288.42 C 35.12 288.45 31.66 288.46 28.19 288.45 C 27.17 288.47 26.15 288.48 25.1 288.5 C 17.73 288.46 12.36 286.94 6.76 282.04 C 6.22 281.38 5.68 280.73 5.12 280.06 C 4.57 279.41 4.02 278.77 3.45 278.1 C -0.93 271.75 -1.19 264.46 0 257 C 1.31 253.66 1.31 253.66 3.04 250.34 C 3.36 249.74 3.67 249.14 3.99 248.52 C 7.35 242.17 11.09 236.04 14.88 229.94 C 16.39 227.48 17.89 225.02 19.4 222.56 C 19.78 221.93 20.16 221.31 20.56 220.67 C 24.27 214.59 27.87 208.45 31.45 202.3 C 34.62 196.86 37.81 191.43 41 186 C 41.37 185.37 41.74 184.74 42.12 184.09 C 44.37 180.26 46.63 176.44 48.91 172.63 C 49.62 171.44 50.33 170.25 51.03 169.06 C 62.97 148.75 78.4 135.48 101 129 C 105.73 127.77 110.35 127.87 115.2 127.89 C 116.57 127.89 116.57 127.89 117.98 127.89 C 121 127.89 124.03 127.89 127.05 127.9 C 129.15 127.9 131.25 127.91 133.35 127.91 C 138.87 127.91 144.4 127.92 149.92 127.93 C 155.56 127.94 161.19 127.95 166.83 127.95 C 177.89 127.96 188.94 127.98 200 128 C 200.3 127.23 200.59 126.46 200.9 125.67 C 211.9 99.03 240.25 71.53 263 54 C 263.59 53.54 264.18 53.07 264.79 52.6 C 274.13 45.31 283.64 38.75 294 33 C 295.24 32.3 295.24 32.3 296.51 31.59 C 331.82 11.98 372.19 -0.01 412.78 -0.2 Z M 351.54 104.85 C 344.82 114.25 344.02 124.8 345 136 C 347.2 146.77 353.78 155.13 362.57 161.49 C 372.55 167.69 383.77 168.72 395.15 166.34 C 406.34 162.72 414.8 154.81 420.32 144.54 C 424.39 135.06 424.61 123.78 421.38 114 C 416.8 103.31 408.83 95.17 398.08 90.73 C 380.44 84.56 363.22 90.96 351.54 104.85 Z',+ },+ ],+ },/** https://www.together.ai (site header) */together: {viewBox: '0 -0.94 27 27',@@ -261,6 +292,18 @@ export const brandMarks: Record<BrandMarkId, BrandMark> = {},],},+ /** https://unify.ai/icon.svg */+ unify: {+ viewBox: '10 10 100 100',+ paths: [+ {+ d: 'M60 29.016A34 34 0 1 0 60 90.984A34 34 0 0 1 60 29.016Z',+ },+ {+ d: 'M60 29.016A34 34 0 1 1 60 90.984A34 34 0 0 0 60 29.016Z',+ },+ ],+ },/** simple-icons vercel */vercel: {viewBox: '0 0 24 24',diff --git a/packages/client/src/icons/provider/registry.spec.ts b/packages/client/src/icons/provider/registry.spec.tsindex 2a96ba0576..4bcad48e54 100644--- a/packages/client/src/icons/provider/registry.spec.ts+++ b/packages/client/src/icons/provider/registry.spec.ts@@ -1,10 +1,6 @@-import fs from 'fs';-import path from 'path';import { ProviderId } from 'librechat-data-provider';import { getProviderIconDef, providerIcons } from './registry';-const packageAssets = path.join(__dirname, 'assets');-describe('providerIcons', () => {it('has an entry for every ProviderId', () => {for (const id of Object.values(ProviderId)) {@@ -13,23 +9,10 @@ describe('providerIcons', () => {}});- it('points every asset entry at a file shipped with the package', () => {- for (const def of Object.values(providerIcons)) {- if (def.art.kind === 'asset') {- const assetPath = path.resolve(__dirname, def.art.src);- const relativePath = path.relative(packageAssets, assetPath);- expect(path.isAbsolute(def.art.src)).toBe(false);- expect(relativePath.split(path.sep)).not.toContain('..');- expect(fs.statSync(assetPath).isFile()).toBe(true);- }- }- });-- it('marks raster art as not monochrome', () => {+ it('draws every provider as a mark that follows the theme', () => {for (const def of Object.values(providerIcons)) {- if (def.art.kind === 'asset') {- expect(def.mono).not.toBe(true);- }+ expect(def.art.kind).toBe('component');+ expect(def.mono).toBe(true);}});diff --git a/packages/client/src/icons/provider/registry.ts b/packages/client/src/icons/provider/registry.tsindex 28c21e9711..383d9ec06b 100644--- a/packages/client/src/icons/provider/registry.ts+++ b/packages/client/src/icons/provider/registry.ts@@ -15,9 +15,7 @@ import { createMark } from './Mark';type ProviderArtComponent = ComponentType<SVGProps<SVGSVGElement> & { size?: number }>;-export type ProviderArt =- | { kind: 'component'; Component: ProviderArtComponent }- | { kind: 'asset'; src: string };+export type ProviderArt = { kind: 'component'; Component: ProviderArtComponent };export interface ProviderIconDef {art: ProviderArt;@@ -32,8 +30,6 @@ export interface ProviderIconDef {byModel?: (model: string) => Partial<ProviderIconDef> | undefined;}-const asset = (src: string): ProviderArt => ({ kind: 'asset', src });-const component = (Component: ProviderArtComponent): ProviderArt => ({kind: 'component',Component,@@ -111,10 +107,10 @@ export const providerIcons: Record<ProviderId, ProviderIconDef> = {[ProviderId.qwen]: { art: mark('qwen'), label: 'Qwen', mono: true },[ProviderId.together]: { art: mark('together'), label: 'Together AI', mono: true },[ProviderId.vercel]: { art: mark('vercel'), label: 'Vercel', mono: true },- [ProviderId.lemonade]: { art: asset('assets/lemonade.png'), label: 'AMD Lemonade' },- [ProviderId.mlx]: { art: asset('assets/mlx.png'), label: 'MLX' },- [ProviderId.shuttleai]: { art: asset('assets/shuttleai.png'), label: 'ShuttleAI' },- [ProviderId.unify]: { art: asset('assets/unify.webp'), label: 'Unify' },+ [ProviderId.lemonade]: { art: mark('lemonade'), label: 'AMD Lemonade', mono: true },+ [ProviderId.mlx]: { art: mark('mlx'), label: 'MLX', mono: true },+ [ProviderId.shuttleai]: { art: mark('shuttleai'), label: 'ShuttleAI', mono: true },+ [ProviderId.unify]: { art: mark('unify'), label: 'Unify', mono: true },};/**diff --git a/packages/client/tsdown.config.mjs b/packages/client/tsdown.config.mjsindex 2e87e6ab10..aa32072e55 100644--- a/packages/client/tsdown.config.mjs+++ b/packages/client/tsdown.config.mjs@@ -24,7 +24,6 @@ export default defineConfig({fixedExtension: true,define,copy: [- { from: 'src/icons/provider/assets', to: 'dist' },// The color tokens ship as CSS: an app imports `@librechat/client/theme.css` into the// stylesheet that imports Tailwind, and gets `bg-surface-primary` and the rest. `to` names// the destination directory, not the file, pointing it at `dist/theme.css` produced a