Skip to content

Commit

Permalink
sub plan page (#23)
Browse files Browse the repository at this point in the history
* fix chunk index; error page text

* feat: dataset process Integral prediction

* feat: stand plan field

* feat: sub plan limit

* perf: index

* query extension

* perf: share link push app name

* perf: plan point unit

* perf: get sub plan

* perf: account page
  • Loading branch information
c121914yu authored and ImgBotApp committed Aug 16, 2024
1 parent 1811295 commit d6e90d4
Show file tree
Hide file tree
Showing 29 changed files with 688 additions and 2,761 deletions.
62 changes: 0 additions & 62 deletions packages/global/common/error/code/team.ts

This file was deleted.

64 changes: 64 additions & 0 deletions packages/global/core/module/template/system/queryExtension.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
import {
FlowNodeInputTypeEnum,
FlowNodeOutputTypeEnum,
FlowNodeTypeEnum
} from '../../node/constant';
import { FlowModuleTemplateType } from '../../type';
import {
ModuleIOValueTypeEnum,
ModuleInputKeyEnum,
ModuleOutputKeyEnum,
ModuleTemplateTypeEnum
} from '../../constants';
import {
Input_Template_History,
Input_Template_Switch,
Input_Template_UserChatInput
} from '../input';
import { Output_Template_UserChatInput } from '../output';

export const AiQueryExtension: FlowModuleTemplateType = {
id: FlowNodeTypeEnum.chatNode,
templateType: ModuleTemplateTypeEnum.other,
flowType: FlowNodeTypeEnum.queryExtension,
avatar: '/imgs/module/cfr.svg',
name: 'core.module.template.Query extension',
intro: 'core.module.template.Query extension intro',
showStatus: true,
inputs: [
Input_Template_Switch,
{
key: ModuleInputKeyEnum.aiModel,
type: FlowNodeInputTypeEnum.selectLLMModel,
label: 'core.module.input.label.aiModel',
required: true,
valueType: ModuleIOValueTypeEnum.string,
showTargetInApp: false,
showTargetInPlugin: false
},
{
key: ModuleInputKeyEnum.aiSystemPrompt,
type: FlowNodeInputTypeEnum.textarea,
label: 'core.app.edit.Query extension background prompt',
max: 300,
valueType: ModuleIOValueTypeEnum.string,
description: 'core.app.edit.Query extension background tip',
placeholder: 'core.module.QueryExtension.placeholder',
showTargetInApp: true,
showTargetInPlugin: true
},
Input_Template_History,
Input_Template_UserChatInput
],
outputs: [
Output_Template_UserChatInput,
{
key: ModuleOutputKeyEnum.text,
label: 'core.module.output.label.query extension result',
description: 'core.module.output.description.query extension result',
valueType: ModuleIOValueTypeEnum.string,
type: FlowNodeOutputTypeEnum.source,
targets: []
}
]
};
28 changes: 0 additions & 28 deletions packages/global/support/user/constant.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { StandardSubLevelEnum } from "../wallet/sub/constants"
export enum UserStatusEnum {
active = 'active',
forbidden = 'forbidden'
Expand All @@ -17,30 +16,3 @@ export enum OAuthEnum {
google = 'google',
wechat = 'wechat'
}

export const standardInfoMap = {
[StandardSubLevelEnum.free]: {
maxTeamNum: '1',
maxAppNum: '1',
maxPreservation: 7,
other: ['10 万积分≈40 次对话 = 2 元']
},
[StandardSubLevelEnum.experience]: {
maxTeamNum: '5',
maxAppNum: '5',
maxPreservation: 30,
other: ['200 万积分 ≈ 800 次对话', '优先训练功能', '24 h/次 web 站点同步', '24 h/次 导出知识库 ', '重排优先级(选不同卡) ']
},
[StandardSubLevelEnum.team]: {
maxTeamNum: '10',
maxAppNum: '10',
maxPreservation: 90,
other: ['1500 万积分 ≈ 6000 次对话', '中级优先训练功能', '个人 key(不扣积分)', '自定义版权 logo,title,分享链接去水印 ', '12 h/次 web 站点同步 ', '12 h/次 导出知识库 ', '高级重排优先级(选不同卡) ']
},
[StandardSubLevelEnum.enterprise]: {
maxTeamNum: '50',
maxAppNum: '50',
maxPreservation: 360,
other: ['5000 万积分 ≈ 20000 次对话 ', '高级优先训练功能', '个人 key(不扣积分)', '自定义版权 logo,title,分享链接去水印 ', '6 h/次 web 站点同步', '6 h/次 导出知识库 ', '高级重排优先级(选不同卡) ']
},
}
85 changes: 0 additions & 85 deletions packages/service/core/dataset/search/utils.ts

This file was deleted.

53 changes: 0 additions & 53 deletions packages/service/support/outLink/tools.ts

This file was deleted.

71 changes: 0 additions & 71 deletions packages/service/support/user/team/teamSchema.ts

This file was deleted.

Loading

0 comments on commit d6e90d4

Please sign in to comment.