patch rerender

This commit is contained in:
timothycarambat 2024-04-11 18:16:18 -07:00
parent 7407406643
commit b194a9e8bd

View File

@ -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("");