mirror of
https://github.com/labring/FastGPT.git
synced 2025-08-03 05:19:51 +00:00
configmap
This commit is contained in:
@@ -52,7 +52,7 @@ function App({ Component, pageProps, isPc }: AppProps & { isPc?: boolean; respon
|
||||
return (
|
||||
<>
|
||||
<Head>
|
||||
<title>{feConfigs?.systemTitle || 'FastAI'}</title>
|
||||
<title>{feConfigs?.systemTitle || 'AI知识库'}</title>
|
||||
<meta name="description" content="Embedding + LLM, Build AI knowledge base" />
|
||||
<meta
|
||||
name="viewport"
|
||||
|
@@ -17,6 +17,9 @@ export type InitDateResponse = {
|
||||
};
|
||||
|
||||
export default async function handler(req: NextApiRequest, res: NextApiResponse) {
|
||||
if (!global.feConfigs) {
|
||||
await getInitConfig();
|
||||
}
|
||||
jsonRes<InitDateResponse>(res, {
|
||||
data: {
|
||||
systemEnv: global.systemEnv,
|
||||
@@ -39,6 +42,6 @@ export async function getInitConfig() {
|
||||
global.qaModels = res.QAModels;
|
||||
global.vectorModels = res.VectorModels;
|
||||
} catch (error) {
|
||||
console.log('get init config error');
|
||||
return Promise.reject('get init config error');
|
||||
}
|
||||
}
|
||||
|
@@ -168,7 +168,7 @@ const Home = () => {
|
||||
fontSize={['40px', '70px']}
|
||||
letterSpacing={'5px'}
|
||||
>
|
||||
{feConfigs?.systemTitle || 'FastAI'}
|
||||
{feConfigs?.systemTitle || 'AI知识库'}
|
||||
</Box>
|
||||
<Box className={styles.textlg} fontWeight={'bold'} fontSize={['30px', '50px']}>
|
||||
可视化 AI 编排
|
||||
|
@@ -73,7 +73,7 @@ const RegisterForm = ({ setPageType, loginSuccess }: Props) => {
|
||||
return (
|
||||
<>
|
||||
<Box fontWeight={'bold'} fontSize={'2xl'} textAlign={'center'}>
|
||||
找回 FastGPT 账号
|
||||
找回 {feConfigs?.systemTitle} 账号
|
||||
</Box>
|
||||
<form onSubmit={handleSubmit(onclickFindPassword)}>
|
||||
<FormControl mt={5} isInvalid={!!errors.username}>
|
||||
|
@@ -55,7 +55,7 @@ const LoginForm = ({ setPageType, loginSuccess }: Props) => {
|
||||
return (
|
||||
<>
|
||||
<Box fontWeight={'bold'} fontSize={'2xl'} textAlign={'center'}>
|
||||
登录 FastGPT
|
||||
登录 {feConfigs?.systemTitle}
|
||||
</Box>
|
||||
<form onSubmit={handleSubmit(onclickLogin)}>
|
||||
<FormControl mt={8} isInvalid={!!errors.username}>
|
||||
|
@@ -86,7 +86,7 @@ const RegisterForm = ({ setPageType, loginSuccess }: Props) => {
|
||||
return (
|
||||
<>
|
||||
<Box fontWeight={'bold'} fontSize={'2xl'} textAlign={'center'}>
|
||||
注册 FastGPT 账号
|
||||
注册 {feConfigs?.systemTitle} 账号
|
||||
</Box>
|
||||
<form onSubmit={handleSubmit(onclickRegister)}>
|
||||
<FormControl mt={5} isInvalid={!!errors.username}>
|
||||
|
Reference in New Issue
Block a user