remove markdown format;refresh username;perf: latext render (#3877)

* refresh username

* remove md format

* perf: latext render

* ignore big image

* model config
This commit is contained in:
Archer
2025-02-25 16:16:30 +08:00
committed by GitHub
parent 4f0dd96699
commit 5d5bee9e41
9 changed files with 108 additions and 130 deletions

View File

@@ -52,7 +52,6 @@ export const navbarWidth = '64px';
const Layout = ({ children }: { children: JSX.Element }) => {
const router = useRouter();
const { t } = useTranslation();
const { toast } = useToast();
const { Loading } = useLoading();
const { loading, feConfigs, notSufficientModalType, llmModelList, embeddingModelList } =
useSystemStore();
@@ -88,6 +87,7 @@ const Layout = ({ children }: { children: JSX.Element }) => {
});
// Check model invalid
const { toast } = useToast();
useDebounceEffect(
() => {
if (userInfo?.username === 'root') {
@@ -96,13 +96,13 @@ const Layout = ({ children }: { children: JSX.Element }) => {
status: 'warning',
title: t('common:llm_model_not_config')
});
router.push('/account/model');
router.pathname !== '/account/model' && router.push('/account/model');
} else if (embeddingModelList.length === 0) {
toast({
status: 'warning',
title: t('common:embedding_model_not_config')
});
router.push('/account/model');
router.pathname !== '/account/model' && router.push('/account/model');
}
}
},