feat(setup-config): only allow finalization when chat model exists

This commit is contained in:
ItzCrazyKns
2025-10-21 14:24:44 +05:30
parent 3d950bac07
commit 82efd35b55
2 changed files with 2 additions and 3 deletions

View File

@@ -63,7 +63,8 @@ const SetupConfig = ({
}
};
const hasProviders = providers.length > 0;
const hasProviders =
providers.filter((p) => p.chatModels.length > 0).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">

View File

@@ -28,8 +28,6 @@ export class HuggingFaceTransformersEmbeddings
timeout?: number;
private pipelinePromise: Promise<any> | undefined;
constructor(fields?: Partial<HuggingFaceTransformersEmbeddingsParams>) {
super(fields ?? {});