mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-24 22:03:54 +00:00
perf: txt
This commit is contained in:
@@ -288,6 +288,8 @@ export const ClassifyQuestionModule: AppModuleTemplateItemType = {
|
|||||||
logo: '/imgs/module/cq.png',
|
logo: '/imgs/module/cq.png',
|
||||||
name: '问题分类',
|
name: '问题分类',
|
||||||
intro: '可以判断用户问题属于哪方面问题,从而执行不同的操作。',
|
intro: '可以判断用户问题属于哪方面问题,从而执行不同的操作。',
|
||||||
|
description:
|
||||||
|
'根据用户的历史记录和当前问题判断该次提问的类型。可以添加多组问题类型,下面是一个模板例子:\n类型1: 打招呼\n类型2: 关于 laf 通用问题\n类型3: 关于 laf 代码问题\n类型4: 其他问题',
|
||||||
type: AppModuleItemTypeEnum.http,
|
type: AppModuleItemTypeEnum.http,
|
||||||
url: '/app/modules/agent/classifyQuestion',
|
url: '/app/modules/agent/classifyQuestion',
|
||||||
flowType: FlowModuleTypeEnum.classifyQuestion,
|
flowType: FlowModuleTypeEnum.classifyQuestion,
|
||||||
@@ -309,12 +311,16 @@ export const ClassifyQuestionModule: AppModuleTemplateItemType = {
|
|||||||
label: '',
|
label: '',
|
||||||
value: [
|
value: [
|
||||||
{
|
{
|
||||||
value: '',
|
value: '打招呼',
|
||||||
key: 'fasw'
|
key: 'fasw'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
value: '',
|
value: '关于 xxx 的问题',
|
||||||
key: 'fqsw'
|
key: 'fqsw'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
value: '其他问题',
|
||||||
|
key: 'fesw'
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@@ -331,6 +337,12 @@ export const ClassifyQuestionModule: AppModuleTemplateItemType = {
|
|||||||
label: '',
|
label: '',
|
||||||
type: FlowOutputItemTypeEnum.hidden,
|
type: FlowOutputItemTypeEnum.hidden,
|
||||||
targets: []
|
targets: []
|
||||||
|
},
|
||||||
|
{
|
||||||
|
key: 'fesw',
|
||||||
|
label: '',
|
||||||
|
type: FlowOutputItemTypeEnum.hidden,
|
||||||
|
targets: []
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
};
|
};
|
||||||
|
@@ -143,7 +143,7 @@ const Settings = ({ appId }: { appId: string }) => {
|
|||||||
</Box>
|
</Box>
|
||||||
<Box>
|
<Box>
|
||||||
<Box mb={2} fontSize={['md', 'xl']}>
|
<Box mb={2} fontSize={['md', 'xl']}>
|
||||||
近 7 日消费
|
近 14 日消费
|
||||||
</Box>
|
</Box>
|
||||||
<Box h={'150px'} w={'100%'}>
|
<Box h={'150px'} w={'100%'}>
|
||||||
<TotalUsage appId={appId} />
|
<TotalUsage appId={appId} />
|
||||||
|
@@ -61,7 +61,7 @@ const NodeRINode = ({
|
|||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
<Box flex={1}>
|
<Box flex={1}>
|
||||||
<Box flex={1}>意图{i + 1}</Box>
|
<Box flex={1}>类型{i + 1}</Box>
|
||||||
<Box position={'relative'}>
|
<Box position={'relative'}>
|
||||||
<Input
|
<Input
|
||||||
mt={1}
|
mt={1}
|
||||||
@@ -123,7 +123,7 @@ const NodeRINode = ({
|
|||||||
});
|
});
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
添加意图
|
添加问题类型
|
||||||
</Button>
|
</Button>
|
||||||
</Box>
|
</Box>
|
||||||
)
|
)
|
||||||
|
@@ -102,4 +102,4 @@ try {
|
|||||||
console.log(error);
|
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: {
|
appId: {
|
||||||
type: Schema.Types.ObjectId,
|
type: Schema.Types.ObjectId,
|
||||||
ref: 'app',
|
ref: 'model',
|
||||||
required: false
|
required: false
|
||||||
},
|
},
|
||||||
time: {
|
time: {
|
||||||
|
@@ -10,7 +10,7 @@ const ChatSchema = new Schema({
|
|||||||
},
|
},
|
||||||
appId: {
|
appId: {
|
||||||
type: Schema.Types.ObjectId,
|
type: Schema.Types.ObjectId,
|
||||||
ref: 'app',
|
ref: 'model',
|
||||||
required: true
|
required: true
|
||||||
},
|
},
|
||||||
updateTime: {
|
updateTime: {
|
||||||
|
Reference in New Issue
Block a user