mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-27 08:25:07 +00:00
fix: mode data
This commit is contained in:
@@ -22,9 +22,9 @@ const Home = () => {
|
|||||||
|
|
||||||
<Card p={5} mt={4} textAlign={'center'}>
|
<Card p={5} mt={4} textAlign={'center'}>
|
||||||
<Box>
|
<Box>
|
||||||
{/* <Link href="https://beian.miit.gov.cn/" target="_blank">
|
<Link href="https://beian.miit.gov.cn/" target="_blank">
|
||||||
浙B2-20080101
|
浙ICP备2023011255号-1
|
||||||
</Link> */}
|
</Link>
|
||||||
</Box>
|
</Box>
|
||||||
<Box>Made by FastGpt Team.</Box>
|
<Box>Made by FastGpt Team.</Box>
|
||||||
</Card>
|
</Card>
|
||||||
|
@@ -39,6 +39,7 @@ const ModelDetail = ({ modelId }: { modelId: string }) => {
|
|||||||
setLoading(true);
|
setLoading(true);
|
||||||
try {
|
try {
|
||||||
const res = await getModelById(modelId);
|
const res = await getModelById(modelId);
|
||||||
|
console.log(res);
|
||||||
setModel(res);
|
setModel(res);
|
||||||
formHooks.reset(res);
|
formHooks.reset(res);
|
||||||
} catch (err: any) {
|
} catch (err: any) {
|
||||||
|
@@ -39,7 +39,7 @@ export const authModel = async ({
|
|||||||
}
|
}
|
||||||
|
|
||||||
// detail 内容去除
|
// detail 内容去除
|
||||||
if (!model.share.isShareDetail) {
|
if (!model.share.isShareDetail && userId !== String(model.userId)) {
|
||||||
model.systemPrompt = '';
|
model.systemPrompt = '';
|
||||||
model.temperature = 0;
|
model.temperature = 0;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user