Commit 56b3ddc1 by archer

fix: mode data

parent 5969f5e0
......@@ -22,9 +22,9 @@ const Home = () => {
<Card p={5} mt={4} textAlign={'center'}>
<Box>
{/* <Link href="https://beian.miit.gov.cn/" target="_blank">
浙B2-20080101
</Link> */}
<Link href="https://beian.miit.gov.cn/" target="_blank">
浙ICP备2023011255号-1
</Link>
</Box>
<Box>Made by FastGpt Team.</Box>
</Card>
......
......@@ -39,6 +39,7 @@ const ModelDetail = ({ modelId }: { modelId: string }) => {
setLoading(true);
try {
const res = await getModelById(modelId);
console.log(res);
setModel(res);
formHooks.reset(res);
} catch (err: any) {
......
......@@ -39,7 +39,7 @@ export const authModel = async ({
}
// detail 内容去除
if (!model.share.isShareDetail) {
if (!model.share.isShareDetail && userId !== String(model.userId)) {
model.systemPrompt = '';
model.temperature = 0;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment