jan/web/helpers/atoms/Model.atom.ts
2023-10-25 00:36:11 +07:00

8 lines
273 B
TypeScript

import { atom } from 'jotai'
export const stateModel = atom({ state: 'start', loading: false, model: '' })
export const selectedModelAtom = atom<AssistantModel | undefined>(undefined)
export const activeAssistantModelAtom = atom<AssistantModel | undefined>(
undefined
)