diff --git a/client/public/assets/xai.svg b/client/public/assets/xai.svg deleted file mode 100644 index 2aca45ed4f..0000000000 --- a/client/public/assets/xai.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/client/src/components/svg/AnthropicMinimalIcon.tsx b/client/src/components/svg/AnthropicMinimalIcon.tsx index ea44063cd0..777fc79dc1 100644 --- a/client/src/components/svg/AnthropicMinimalIcon.tsx +++ b/client/src/components/svg/AnthropicMinimalIcon.tsx @@ -1,6 +1,6 @@ import React from 'react'; -export default function AzureMinimalistIcon() { +export default function AnthropicMinimalIcon() { return ( + ); +} diff --git a/client/src/components/svg/index.ts b/client/src/components/svg/index.ts index 97a2e57ab5..f0cf35f6c3 100644 --- a/client/src/components/svg/index.ts +++ b/client/src/components/svg/index.ts @@ -57,3 +57,4 @@ export { default as SpeechIcon } from './SpeechIcon'; export { default as SaveIcon } from './SaveIcon'; export { default as CircleHelpIcon } from './CircleHelpIcon'; export { default as BedrockIcon } from './BedrockIcon'; +export { default as XAIcon } from './XAIcon'; diff --git a/client/src/hooks/Endpoint/UnknownIcon.tsx b/client/src/hooks/Endpoint/UnknownIcon.tsx index 04bac0bdeb..1c41e96071 100644 --- a/client/src/hooks/Endpoint/UnknownIcon.tsx +++ b/client/src/hooks/Endpoint/UnknownIcon.tsx @@ -1,6 +1,6 @@ import { memo } from 'react'; import { EModelEndpoint, KnownEndpoints } from 'librechat-data-provider'; -import { CustomMinimalIcon } from '~/components/svg'; +import { CustomMinimalIcon, XAIcon } from '~/components/svg'; import { IconContext } from '~/common'; import { cn } from '~/utils'; @@ -20,7 +20,6 @@ const knownEndpointAssets = { [KnownEndpoints.shuttleai]: '/assets/shuttleai.png', [KnownEndpoints['together.ai']]: '/assets/together.png', [KnownEndpoints.unify]: '/assets/unify.webp', - [KnownEndpoints.xai]: '/assets/xai.svg', }; const knownEndpointClasses = { @@ -72,6 +71,18 @@ function UnknownIcon({ const currentEndpoint = endpoint.toLowerCase(); + if (currentEndpoint === KnownEndpoints.xai) { + return ( + + ); + } + if (iconURL) { return {`${endpoint}; }