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
b472127d
authored
Jul 29, 2023
by
archer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: admin
parent
53a08227
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
9 deletions
+0
-9
admin/service/route/app.js
+0
-8
admin/src/fields.ts
+0
-1
No files found.
admin/service/route/app.js
View file @
b472127d
...
@@ -27,19 +27,11 @@ export const useAppRoute = (app) => {
...
@@ -27,19 +27,11 @@ export const useAppRoute = (app) => {
for
(
const
modelRaw
of
modelsRaw
)
{
for
(
const
modelRaw
of
modelsRaw
)
{
const
app
=
modelRaw
.
toObject
();
const
app
=
modelRaw
.
toObject
();
// 获取与模型关联的知识库名称
const
kbNames
=
[];
for
(
const
kbId
of
app
.
chat
.
relatedKbs
)
{
const
kb
=
await
Kb
.
findById
(
kbId
);
kbNames
.
push
(
kb
.
name
);
}
const
orderedModel
=
{
const
orderedModel
=
{
id
:
app
.
_id
.
toString
(),
id
:
app
.
_id
.
toString
(),
userId
:
app
.
userId
,
userId
:
app
.
userId
,
name
:
app
.
name
,
name
:
app
.
name
,
intro
:
app
.
intro
,
intro
:
app
.
intro
,
relatedKbs
:
kbNames
,
// 将relatedKbs的id转换为相应的Kb名称
systemPrompt
:
app
.
chat
?.
systemPrompt
||
''
,
systemPrompt
:
app
.
chat
?.
systemPrompt
||
''
,
temperature
:
app
.
chat
?.
temperature
||
0
,
temperature
:
app
.
chat
?.
temperature
||
0
,
'share.topNum'
:
app
.
share
?.
topNum
||
0
,
'share.topNum'
:
app
.
share
?.
topNum
||
0
,
...
...
admin/src/fields.ts
View file @
b472127d
...
@@ -37,7 +37,6 @@ export const AppFields = [
...
@@ -37,7 +37,6 @@ export const AppFields = [
createTextField
(
'share.topNum'
,
{
label
:
'置顶等级'
,
list
:
{
sort
:
true
}
}),
createTextField
(
'share.topNum'
,
{
label
:
'置顶等级'
,
list
:
{
sort
:
true
}
}),
createTextField
(
'share.isShare'
,
{
label
:
'是否分享(true,false)'
}),
createTextField
(
'share.isShare'
,
{
label
:
'是否分享(true,false)'
}),
createTextField
(
'intro'
,
{
label
:
'介绍'
,
list
:
{
width
:
400
}
}),
createTextField
(
'intro'
,
{
label
:
'介绍'
,
list
:
{
width
:
400
}
}),
createTextField
(
'relatedKbs'
,
{
label
:
'引用的知识库'
,
list
:
{
hidden
:
true
}
}),
createTextField
(
'temperature'
,
{
label
:
'温度'
}),
createTextField
(
'temperature'
,
{
label
:
'温度'
}),
createTextField
(
'systemPrompt'
,
{
createTextField
(
'systemPrompt'
,
{
label
:
'提示词'
,
label
:
'提示词'
,
...
...
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