jan/web/app/_helpers/JotaiWrapper.tsx
Louis a57dfe743b
fixes: #247 - inference plugin should check nitro service available (#313)
* fix: #247 - inference plugin should check nitro service available

* fix: #247 check service status and emit error if any

* chore: error handling

* chore: typo

* fix: open conversation does not work when model is deleted

* chore: reload plugins in development mode without exiting the process

* chore: move model file check to inference plugin

* update package-lock.json

---------

Co-authored-by: Hien To <>
2023-10-10 18:24:33 +07:00

22 lines
490 B
TypeScript

"use client";
import { Provider, atom } from "jotai";
import { ReactNode } from "react";
type Props = {
children: ReactNode;
};
export default function JotaiWrapper({ children }: Props) {
return <Provider>{children}</Provider>;
}
export const currentPromptAtom = atom<string>("");
export const appDownloadProgress = atom<number>(-1);
export const searchingModelText = atom<string>("");
export const searchAtom = atom<string>("");
export const modelSearchAtom = atom<string>("");