diff --git a/src/components/Setup/SetupConfig.tsx b/src/components/Setup/SetupConfig.tsx index f8c047a..334974f 100644 --- a/src/components/Setup/SetupConfig.tsx +++ b/src/components/Setup/SetupConfig.tsx @@ -9,6 +9,7 @@ import { useEffect, useState } from 'react'; import { toast } from 'sonner'; import AddProvider from '../Settings/Sections/Models/AddProviderDialog'; import ModelProvider from '../Settings/Sections/Models/ModelProvider'; +import ModelSelect from '@/components/Settings/Sections/Models/ModelSelect'; const SetupConfig = ({ configSections, @@ -124,8 +125,57 @@ const SetupConfig = ({ )} + {setupState === 3 && ( + +
+
+
+

+ Select models +

+

+ Select models which you wish to use. +

+
+
+ +
+ + +
+
+
+ )} +
+ {setupState === 2 && ( + { + setSetupState(3); + }} + disabled={!hasProviders || isLoading} + className="flex flex-row items-center gap-1.5 md:gap-2 px-3 md:px-5 py-2 md:py-2.5 rounded-lg bg-[#24A0ED] text-white hover:bg-[#1e8fd1] active:scale-95 transition-all duration-200 font-medium text-xs sm:text-sm disabled:bg-light-200 dark:disabled:bg-dark-200 disabled:text-black/40 dark:disabled:text-white/40 disabled:cursor-not-allowed disabled:active:scale-100" + > + Next + + + )} + {setupState === 3 && (