mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-21 11:43:56 +00:00

* pr code * perf: model table show * perf: model provider show * perf: get init data buffer * perf: get init data buffer * perf: icon
26 lines
610 B
TypeScript
26 lines
610 B
TypeScript
import { serviceSideProps } from '@fastgpt/web/common/system/nextjs';
|
|
import React from 'react';
|
|
import AccountContainer from '../components/AccountContainer';
|
|
import { Box } from '@chakra-ui/react';
|
|
import ModelTable from '@/components/core/ai/ModelTable';
|
|
|
|
const ModelProvider = () => {
|
|
return (
|
|
<AccountContainer>
|
|
<Box h={'100%'} py={4} px={6}>
|
|
<ModelTable />
|
|
</Box>
|
|
</AccountContainer>
|
|
);
|
|
};
|
|
|
|
export async function getServerSideProps(content: any) {
|
|
return {
|
|
props: {
|
|
...(await serviceSideProps(content, ['account']))
|
|
}
|
|
};
|
|
}
|
|
|
|
export default ModelProvider;
|