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
d346d386
authored
Jul 18, 2023
by
archer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
perf: txt
parent
f71ce25c
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
20 additions
and
8 deletions
+20
-8
client/src/constants/flow/ModuleTemplate.ts
+14
-2
client/src/pages/app/detail/components/Settings.tsx
+1
-1
client/src/pages/app/detail/components/edit/components/NodeRINode.tsx
+2
-2
client/src/service/models/app.ts
+1
-1
client/src/service/models/bill.ts
+1
-1
client/src/service/models/chat.ts
+1
-1
No files found.
client/src/constants/flow/ModuleTemplate.ts
View file @
d346d386
...
...
@@ -288,6 +288,8 @@ export const ClassifyQuestionModule: AppModuleTemplateItemType = {
logo: '/imgs/module/cq.png',
name: '问题分类',
intro: '可以判断用户问题属于哪方面问题,从而执行不同的操作。',
description:
'根据用户的历史记录和当前问题判断该次提问的类型。可以添加多组问题类型,下面是一个模板例子:\n类型1: 打招呼\n类型2: 关于 laf 通用问题\n类型3: 关于 laf 代码问题\n类型4: 其他问题',
type: AppModuleItemTypeEnum.http,
url: '/app/modules/agent/classifyQuestion',
flowType: FlowModuleTypeEnum.classifyQuestion,
...
...
@@ -309,12 +311,16 @@ export const ClassifyQuestionModule: AppModuleTemplateItemType = {
label: '',
value: [
{
value: '',
value: '
打招呼
',
key: 'fasw'
},
{
value: '',
value: '
关于 xxx 的问题
',
key: 'fqsw'
},
{
value: '其他问题',
key: 'fesw'
}
]
}
...
...
@@ -331,6 +337,12 @@ export const ClassifyQuestionModule: AppModuleTemplateItemType = {
label: '',
type: FlowOutputItemTypeEnum.hidden,
targets: []
},
{
key: 'fesw',
label: '',
type: FlowOutputItemTypeEnum.hidden,
targets: []
}
]
};
...
...
client/src/pages/app/detail/components/Settings.tsx
View file @
d346d386
...
...
@@ -143,7 +143,7 @@ const Settings = ({ appId }: { appId: string }) => {
</
Box
>
<
Box
>
<
Box
mb=
{
2
}
fontSize=
{
[
'md'
,
'xl'
]
}
>
近
7
日消费
近
14
日消费
</
Box
>
<
Box
h=
{
'150px'
}
w=
{
'100%'
}
>
<
TotalUsage
appId=
{
appId
}
/>
...
...
client/src/pages/app/detail/components/edit/components/NodeRINode.tsx
View file @
d346d386
...
...
@@ -61,7 +61,7 @@ const NodeRINode = ({
}
}
/>
<
Box
flex=
{
1
}
>
<
Box
flex=
{
1
}
>
意图
{
i
+
1
}
</
Box
>
<
Box
flex=
{
1
}
>
类型
{
i
+
1
}
</
Box
>
<
Box
position=
{
'relative'
}
>
<
Input
mt=
{
1
}
...
...
@@ -123,7 +123,7 @@ const NodeRINode = ({
});
}
}
>
添加
意图
添加
问题类型
</
Button
>
</
Box
>
)
...
...
client/src/service/models/app.ts
View file @
d346d386
...
...
@@ -102,4 +102,4 @@ try {
console
.
log
(
error
);
}
export
const
App
:
Model
<
AppType
>
=
models
[
'
app'
]
||
model
(
'app
'
,
AppSchema
);
export
const
App
:
Model
<
AppType
>
=
models
[
'
model'
]
||
model
(
'model
'
,
AppSchema
);
client/src/service/models/bill.ts
View file @
d346d386
...
...
@@ -14,7 +14,7 @@ const BillSchema = new Schema({
},
appId
:
{
type
:
Schema
.
Types
.
ObjectId
,
ref
:
'
app
'
,
ref
:
'
model
'
,
required
:
false
},
time
:
{
...
...
client/src/service/models/chat.ts
View file @
d346d386
...
...
@@ -10,7 +10,7 @@ const ChatSchema = new Schema({
},
appId
:
{
type
:
Schema
.
Types
.
ObjectId
,
ref
:
'
app
'
,
ref
:
'
model
'
,
required
:
true
},
updateTime
:
{
...
...
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