* 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 <>
22 lines
490 B
TypeScript
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>("");
|