Просмотр исходного кода

Reads unbound model ID from configuration

Pugazhendhi 1 год назад
Родитель
Сommit
4c8577c8a2
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      webview-ui/src/components/settings/UnboundModelPicker.tsx

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