diff --git a/gui/src/components/mainInput/InputToolbar.tsx b/gui/src/components/mainInput/InputToolbar.tsx index d80d0e50c7..1e7f41af55 100644 --- a/gui/src/components/mainInput/InputToolbar.tsx +++ b/gui/src/components/mainInput/InputToolbar.tsx @@ -9,7 +9,15 @@ import { vscForeground, vscInputBackground, } from ".."; +import { useAppDispatch, useAppSelector } from "../../redux/hooks"; import { selectUseActiveFile } from "../../redux/selectors"; +import { selectDefaultModel } from "../../redux/slices/configSlice"; +import { + selectHasCodeToEdit, + selectIsInEditMode, +} from "../../redux/slices/sessionSlice"; +import { exitEditMode } from "../../redux/thunks"; +import { loadLastSession } from "../../redux/thunks/session"; import { getAltKeyLabel, getFontSize, @@ -20,14 +28,6 @@ import { ToolTip } from "../gui/Tooltip"; import ModelSelect from "../modelSelection/ModelSelect"; import HoverItem from "./InputToolbar/HoverItem"; import ToggleToolsButton from "./InputToolbar/ToggleToolsButton"; -import { useAppDispatch, useAppSelector } from "../../redux/hooks"; -import { selectDefaultModel } from "../../redux/slices/configSlice"; -import { - selectHasCodeToEdit, - selectIsInEditMode, -} from "../../redux/slices/sessionSlice"; -import { exitEditMode } from "../../redux/thunks"; -import { loadLastSession } from "../../redux/thunks/session"; const StyledDiv = styled.div<{ isHidden?: boolean }>` padding-top: 4px; @@ -93,7 +93,7 @@ function InputToolbar(props: InputToolbarProps) { const isEnterDisabled = props.disabled || isEditModeAndNoCodeToEdit; const shouldRenderToolsButton = defaultModel && - modelSupportsTools(defaultModel.model) && + modelSupportsTools(defaultModel.model, defaultModel.provider) && !props.toolbarOptions?.hideTools; const supportsImages =