jan/web/helpers/atoms/HuggingFace.atom.ts
Louis 98abff0da3
fix: remote engine should not allow reinit (#3284)
* chore: local engines should not allow reinit

* fix: remote engines should not have install action
2024-08-07 12:45:47 +07:00

13 lines
349 B
TypeScript

import { HuggingFaceRepoData } from '@janhq/core'
import { atom } from 'jotai'
// modals
export type ImportHuggingFaceModelStage = 'NONE' | 'REPO_DETAIL'
export const importingHuggingFaceRepoDataAtom = atom<
HuggingFaceRepoData | undefined
>(undefined)
export const importHuggingFaceModelStageAtom =
atom<ImportHuggingFaceModelStage>('NONE')