Skip to content

Commit

Permalink
fix type error
Browse files Browse the repository at this point in the history
  • Loading branch information
sestinj committed Dec 17, 2024
1 parent 53f2780 commit d291dbd
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions gui/src/components/mainInput/InputToolbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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;
Expand Down Expand Up @@ -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 =
Expand Down

0 comments on commit d291dbd

Please sign in to comment.