Skip to content

Commit

Permalink
chore: remove unused imports
Browse files Browse the repository at this point in the history
  • Loading branch information
louis-menlo committed Jan 2, 2025
1 parent 7842215 commit 1248daf
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 11 deletions.
2 changes: 1 addition & 1 deletion web/containers/Providers/ModelHandler.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import {
extractInferenceParams,
ModelExtension,
} from '@janhq/core'
import { useAtom, useAtomValue, useSetAtom } from 'jotai'
import { useAtomValue, useSetAtom } from 'jotai'
import { ulid } from 'ulidx'

import { activeModelAtom, stateModelAtom } from '@/hooks/useActiveModel'
Expand Down
4 changes: 0 additions & 4 deletions web/hooks/useActiveModel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@ import { LAST_USED_MODEL_ID } from './useRecommendedModel'
import { vulkanEnabledAtom } from '@/helpers/atoms/AppConfig.atom'
import { activeAssistantAtom } from '@/helpers/atoms/Assistant.atom'
import { downloadedModelsAtom } from '@/helpers/atoms/Model.atom'
import {
isGeneratingResponseAtom,
resetThreadWaitingForResponseAtom,
} from '@/helpers/atoms/Thread.atom'

export const activeModelAtom = atom<Model | undefined>(undefined)
export const loadModelErrorAtom = atom<string | undefined>(undefined)
Expand Down
3 changes: 1 addition & 2 deletions web/hooks/useCreateNewThread.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,11 @@ import {
ExtensionTypeEnum,
Thread,
ThreadAssistantInfo,
ThreadState,
AssistantTool,
Model,
Assistant,
} from '@janhq/core'
import { atom, useAtom, useAtomValue, useSetAtom } from 'jotai'
import { useAtom, useAtomValue, useSetAtom } from 'jotai'

import { useDebouncedCallback } from 'use-debounce'

Expand Down
3 changes: 1 addition & 2 deletions web/screens/Settings/Engines/DeleteEngineVariant.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ const DeleteEngineVariant = ({
const [open, setOpen] = useState(false)

const { mutate: mutateInstalledEngines } = useGetInstalledEngines(engine)
const { defaultEngineVariant, mutate: mutateDefaultEngineVariant } =
useGetDefaultEngineVariant(engine)
const { defaultEngineVariant } = useGetDefaultEngineVariant(engine)

return (
<Modal
Expand Down
2 changes: 0 additions & 2 deletions web/screens/Settings/Engines/LocalEngineSettings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import {
InferenceEngine,
} from '@janhq/core'
import { Button, ScrollArea, Badge, Select, Progress } from '@janhq/joi'
import { Trash2Icon } from 'lucide-react'
import { twMerge } from 'tailwind-merge'

import {
Expand All @@ -19,7 +18,6 @@ import {
installEngine,
updateEngine,
useGetReleasedEnginesByVersion,
uninstallEngine,
} from '@/hooks/useEngineManagement'

import { formatDownloadPercentage } from '@/utils/converter'
Expand Down

0 comments on commit 1248daf

Please sign in to comment.