chore: add facades refactor: core module export refactor: inference plugin - deprecate function registering (#537) * refactor: revamp inference plugin as class - deprecate function registering * refactor: monitoring plugin - deprecate service registering (#538) refactor: revamp inference plugin as class - deprecate function registering chore: update import refactor: plugin revamp - model management chore: update build steps and remove experimental plugins refactor: remove pluggable electron chore: add sorting for conversations chore: build plugins for testing chore: consistent plugin directory name chore: docs chore: fix CI chore: update conversation prefix
9 lines
346 B
TypeScript
9 lines
346 B
TypeScript
import { Model } from '@janhq/core/lib/types'
|
|
import { atom } from 'jotai'
|
|
|
|
export const stateModel = atom({ state: 'start', loading: false, model: '' })
|
|
export const selectedModelAtom = atom<Model | undefined>(undefined)
|
|
export const activeModelAtom = atom<Model | undefined>(
|
|
undefined
|
|
)
|
|
export const downloadingModelsAtom = atom<Model[]>([]) |