From b194a9e8bd2a5fb25f45e97cdea19109741ab9ae Mon Sep 17 00:00:00 2001 From: timothycarambat <rambat1010@gmail.com> Date: Thu, 11 Apr 2024 18:16:18 -0700 Subject: [PATCH] patch rerender --- .../ChatSettings/WorkspaceLLMSelection/index.jsx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/frontend/src/pages/WorkspaceSettings/ChatSettings/WorkspaceLLMSelection/index.jsx b/frontend/src/pages/WorkspaceSettings/ChatSettings/WorkspaceLLMSelection/index.jsx index 16eefa05f..19e6e5daf 100644 --- a/frontend/src/pages/WorkspaceSettings/ChatSettings/WorkspaceLLMSelection/index.jsx +++ b/frontend/src/pages/WorkspaceSettings/ChatSettings/WorkspaceLLMSelection/index.jsx @@ -15,6 +15,10 @@ const LLM_DEFAULT = { requiredConfig: [], }; +const LLMS = [LLM_DEFAULT, ...AVAILABLE_LLM_PROVIDERS].filter( + (llm) => !DISABLED_PROVIDERS.includes(llm.value) +); + export default function WorkspaceLLMSelection({ settings, workspace, @@ -27,9 +31,6 @@ export default function WorkspaceLLMSelection({ const [searchQuery, setSearchQuery] = useState(""); const [searchMenuOpen, setSearchMenuOpen] = useState(false); const searchInputRef = useRef(null); - const LLMS = [LLM_DEFAULT, ...AVAILABLE_LLM_PROVIDERS].filter( - (llm) => !DISABLED_PROVIDERS.includes(llm.value) - ); function updateLLMChoice(selection) { setSearchQuery(""); -- GitLab