From 4c8577c8a2591dc8b3691ba96e7d78d7278f330a Mon Sep 17 00:00:00 2001 From: Pugazhendhi Date: Fri, 7 Feb 2025 19:41:09 +0530 Subject: [PATCH] Reads unbound model ID from configuration --- webview-ui/src/components/settings/UnboundModelPicker.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webview-ui/src/components/settings/UnboundModelPicker.tsx b/webview-ui/src/components/settings/UnboundModelPicker.tsx index 5cb9045cb0..ee12f239f9 100644 --- a/webview-ui/src/components/settings/UnboundModelPicker.tsx +++ b/webview-ui/src/components/settings/UnboundModelPicker.tsx @@ -13,7 +13,7 @@ import { ModelInfoView, normalizeApiConfiguration } from "./ApiOptions" const UnboundModelPicker: React.FC = () => { const { apiConfiguration, setApiConfiguration, unboundModels, onUpdateApiConfig } = useExtensionState() - const [searchTerm, setSearchTerm] = useState(apiConfiguration?.apiModelId || unboundDefaultModelId) + const [searchTerm, setSearchTerm] = useState(apiConfiguration?.unboundModelId || unboundDefaultModelId) const [isDropdownVisible, setIsDropdownVisible] = useState(false) const [selectedIndex, setSelectedIndex] = useState(-1) const dropdownRef = useRef(null)