perf: txt

This commit is contained in:
archer
2023-07-18 09:38:18 +08:00
parent f71ce25c46
commit d346d38677
6 changed files with 20 additions and 8 deletions

View File

@@ -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: []
}
]
};

View File

@@ -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} />

View File

@@ -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>
)

View File

@@ -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);

View File

@@ -14,7 +14,7 @@ const BillSchema = new Schema({
},
appId: {
type: Schema.Types.ObjectId,
ref: 'app',
ref: 'model',
required: false
},
time: {

View File

@@ -10,7 +10,7 @@ const ChatSchema = new Schema({
},
appId: {
type: Schema.Types.ObjectId,
ref: 'app',
ref: 'model',
required: true
},
updateTime: {