Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
赵月辉
/
fastgpt-migrated
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Unverified
Commit
56b3ddc1
authored
Apr 28, 2023
by
archer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: mode data
parent
5969f5e0
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
4 deletions
+5
-4
src/pages/index.tsx
+3
-3
src/pages/model/detail/index.tsx
+1
-0
src/service/utils/auth.ts
+1
-1
No files found.
src/pages/index.tsx
View file @
56b3ddc1
...
@@ -22,9 +22,9 @@ const Home = () => {
...
@@ -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-2008010
1
浙
ICP备2023011255号-
1
</Link>
*/
}
</
Link
>
</
Box
>
</
Box
>
<
Box
>
Made by FastGpt Team.
</
Box
>
<
Box
>
Made by FastGpt Team.
</
Box
>
</
Card
>
</
Card
>
...
...
src/pages/model/detail/index.tsx
View file @
56b3ddc1
...
@@ -39,6 +39,7 @@ const ModelDetail = ({ modelId }: { modelId: string }) => {
...
@@ -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
)
{
...
...
src/service/utils/auth.ts
View file @
56b3ddc1
...
@@ -39,7 +39,7 @@ export const authModel = async ({
...
@@ -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
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment