mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-23 13:03:50 +00:00
perf: txt
This commit is contained in:
@@ -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: []
|
||||
}
|
||||
]
|
||||
};
|
||||
|
@@ -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} />
|
||||
|
@@ -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>
|
||||
)
|
||||
|
@@ -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);
|
||||
|
@@ -14,7 +14,7 @@ const BillSchema = new Schema({
|
||||
},
|
||||
appId: {
|
||||
type: Schema.Types.ObjectId,
|
||||
ref: 'app',
|
||||
ref: 'model',
|
||||
required: false
|
||||
},
|
||||
time: {
|
||||
|
@@ -10,7 +10,7 @@ const ChatSchema = new Schema({
|
||||
},
|
||||
appId: {
|
||||
type: Schema.Types.ObjectId,
|
||||
ref: 'app',
|
||||
ref: 'model',
|
||||
required: true
|
||||
},
|
||||
updateTime: {
|
||||
|
Reference in New Issue
Block a user