mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-10 22:41:14 +00:00
Fixed warnings
This commit is contained in:
parent
1268db59a3
commit
7710df85f5
2 changed files with 1 additions and 4 deletions
|
|
@ -56,7 +56,6 @@ const ApiOptions = ({ apiErrorMessage, modelIdErrorMessage }: ApiOptionsProps) =
|
|||
const [azureApiVersionSelected, setAzureApiVersionSelected] = useState(!!apiConfiguration?.azureApiVersion)
|
||||
const [openRouterBaseUrlSelected, setOpenRouterBaseUrlSelected] = useState(!!apiConfiguration?.openRouterBaseUrl)
|
||||
const [isDescriptionExpanded, setIsDescriptionExpanded] = useState(false)
|
||||
const [unboundModels, setUnboundModels] = useState<Record<string, ModelInfo>>({})
|
||||
|
||||
const { selectedProvider, selectedModelId, selectedModelInfo } = useMemo(() => {
|
||||
return normalizeApiConfiguration(apiConfiguration)
|
||||
|
|
@ -91,8 +90,6 @@ const ApiOptions = ({ apiErrorMessage, modelIdErrorMessage }: ApiOptionsProps) =
|
|||
setLmStudioModels(message.lmStudioModels)
|
||||
} else if (message.type === "vsCodeLmModels" && message.vsCodeLmModels) {
|
||||
setVsCodeLmModels(message.vsCodeLmModels)
|
||||
} else if (message.type === "unboundModels" && message.unboundModels) {
|
||||
setUnboundModels(message.unboundModels)
|
||||
}
|
||||
}, [])
|
||||
useEvent("message", handleMessage)
|
||||
|
|
|
|||
|
|
@ -62,7 +62,7 @@ const UnboundModelPicker: React.FC = () => {
|
|||
if (apiConfiguration?.unboundApiKey) {
|
||||
debouncedRefreshModels()
|
||||
}
|
||||
}, [apiConfiguration?.unboundApiKey])
|
||||
}, [apiConfiguration?.unboundApiKey, debouncedRefreshModels])
|
||||
|
||||
useEffect(() => {
|
||||
const handleClickOutside = (event: MouseEvent) => {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue