-
diff --git a/client/src/components/Nav/NewChat.tsx b/client/src/components/Nav/NewChat.tsx
index b0ebb195dce..03bafecbbc1 100644
--- a/client/src/components/Nav/NewChat.tsx
+++ b/client/src/components/Nav/NewChat.tsx
@@ -1,6 +1,25 @@
import { useLocalize, useConversation, useNewConvo, useOriginNavigate } from '~/hooks';
+import { MinimalIcon, Icon } from '~/components/Endpoints';
+import {
+ Plugin,
+ GPTIcon,
+ AnthropicIcon,
+ AzureMinimalIcon,
+ CustomMinimalIcon,
+ PaLMIcon,
+ CodeyIcon,
+ GoogleIconChat,
+} from '~/components/svg';
+import ChatGPT from '../Input/ModelSelect/ChatGPT';
+import BingAI from '../Input/ModelSelect/BingAI';
-export default function NewChat({ toggleNav }: { toggleNav: () => void }) {
+export default function NewChat({
+ endpoint,
+ toggleNav,
+}: {
+ endpoint: string;
+ toggleNav: () => void;
+}) {
const { newConversation } = useConversation();
const { newConversation: newConvo } = useNewConvo();
const navigate = useOriginNavigate();
@@ -16,29 +35,73 @@ export default function NewChat({ toggleNav }: { toggleNav: () => void }) {
}
};
+ const Icon = ({ endpoint }) => {
+ let IconComponent;
+
+ if (endpoint === 'openAI' || endpoint === 'azureOpenAI') {
+ IconComponent =
;
+ } else if (endpoint === 'anthropic') {
+ IconComponent =
;
+ } else if (endpoint === 'chatGPTBrowser') {
+ IconComponent =
;
+ } else if (endpoint === 'bingAI') {
+ IconComponent =
;
+ } else if (endpoint === 'google') {
+ IconComponent =
;
+ } else if (endpoint === 'plugin') {
+ IconComponent =
;
+ } else if (endpoint === 'OpenRouter') {
+ IconComponent = (
+

+ );
+ } else if (endpoint === 'Mistral') {
+ IconComponent = (
+

+ );
+ }
+ return
{IconComponent}
;
+ };
+
return (
+
+
+
{localize('com_ui_new_chat')}
+
- {localize('com_ui_new_chat')}
);
}
diff --git a/client/src/components/svg/GoogleIconChat.tsx b/client/src/components/svg/GoogleIconChat.tsx
new file mode 100644
index 00000000000..4c2f4eb8fca
--- /dev/null
+++ b/client/src/components/svg/GoogleIconChat.tsx
@@ -0,0 +1,26 @@
+import { cn } from '~/utils/';
+
+export default function Google({
+ size = 25,
+ className = '',
+}: {
+ size?: number;
+ className?: string;
+}) {
+ const unit = '41';
+ const height = size;
+ const width = size;
+ return (
+
+ );
+}
diff --git a/client/src/components/svg/Spinner.tsx b/client/src/components/svg/Spinner.tsx
index 3e60397cd60..eb473fe3e79 100644
--- a/client/src/components/svg/Spinner.tsx
+++ b/client/src/components/svg/Spinner.tsx
@@ -4,7 +4,7 @@ import { cn } from '~/utils/';
export default function Spinner({ className = 'm-auto' }) {
return (