From 246b12e54f581087bf98afcac5f97fa8fab5250f Mon Sep 17 00:00:00 2001 From: Louis Date: Wed, 17 Jan 2024 11:38:22 +0700 Subject: [PATCH] fix: wrong selected model ref (#1638) --- web/containers/DropdownListSidebar/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/containers/DropdownListSidebar/index.tsx b/web/containers/DropdownListSidebar/index.tsx index 46a2ba712..b12263678 100644 --- a/web/containers/DropdownListSidebar/index.tsx +++ b/web/containers/DropdownListSidebar/index.tsx @@ -50,7 +50,7 @@ export default function DropdownListSidebar() { const { recommendedModel, downloadedModels } = useRecommendedModel() const selectedName = - downloadedModels.filter((x) => x.id === selected?.id)[0]?.name ?? '' + downloadedModels.filter((x) => x.id === selectedModel?.id)[0]?.name ?? '' /** * Default value for max_tokens and ctx_len * Its to avoid OOM issue since a model can set a big number for these settings