feat(app): show "add model" button

This commit is contained in:
ItzCrazyKns
2025-10-21 16:32:40 +05:30
parent 88ae67065b
commit ce78b4ff62
2 changed files with 88 additions and 93 deletions

View File

@@ -112,7 +112,6 @@ const ModelProvider = ({
>
<div className="border-t border-light-200 dark:border-dark-200" />
<div className="flex flex-col gap-y-4 px-5 py-4">
{modelProvider.chatModels.length > 0 && (
<div className="flex flex-col gap-y-2">
<div className="flex flex-row w-full justify-between items-center">
<p className="text-[11px] lg:text-xs text-black/70 dark:text-white/70">
@@ -157,8 +156,6 @@ const ModelProvider = ({
)}
</div>
</div>
)}
{modelProvider.embeddingModels.length > 0 && (
<div className="flex flex-col gap-y-2">
<div className="flex flex-row w-full justify-between items-center">
<p className="text-[11px] lg:text-xs text-black/70 dark:text-white/70">
@@ -205,7 +202,6 @@ const ModelProvider = ({
)}
</div>
</div>
)}
</div>
</motion.div>
)}

View File

@@ -63,8 +63,7 @@ const SetupConfig = ({
}
};
const hasProviders =
providers.filter((p) => p.chatModels.length > 0).length > 0;
const hasProviders = providers.length > 0;
return (
<div className="w-[95vw] md:w-[80vw] lg:w-[65vw] mx-auto px-2 sm:px-4 md:px-6 flex flex-col space-y-6">