Reads unbound model ID from configuration

This commit is contained in:
Pugazhendhi 2025-02-07 19:41:09 +05:30
parent 64a579e965
commit 4c8577c8a2

View file

@ -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<HTMLDivElement>(null)