perf: quote response

This commit is contained in:
archer
2023-07-17 16:12:51 +08:00
parent 60a9dfb55f
commit 53a4d9db05
20 changed files with 215 additions and 173 deletions

View File

@@ -1,4 +1,5 @@
import type { AppItemType } from '@/types/app';
import { rawSearchKey } from './chat';
/* app */
export enum AppModuleItemTypeEnum {
@@ -530,7 +531,7 @@ export const appTemplates: (AppItemType & { avatar: string; intro: string })[] =
],
outputs: [
{
key: 'rawSearch',
key: rawSearchKey,
label: '源搜索数据',
type: 'hidden',
response: true,
@@ -1165,7 +1166,7 @@ export const appTemplates: (AppItemType & { avatar: string; intro: string })[] =
],
outputs: [
{
key: 'rawSearch',
key: rawSearchKey,
label: '源搜索数据',
type: 'hidden',
response: true,

View File

@@ -24,5 +24,8 @@ export const ChatRoleMap = {
}
};
export const rawSearchKey = 'rawSearch';
export const quoteLenKey = 'quoteLen';
export const HUMAN_ICON = `https://fastgpt.run/icon/human.png`;
export const LOGO_ICON = `https://fastgpt.run/icon/logo.png`;

View File

@@ -7,6 +7,7 @@ import {
Input_Template_TFSwitch,
Input_Template_UserChatInput
} from './inputTemplate';
import { rawSearchKey } from '../chat';
export const VariableInputModule: AppModuleTemplateItemType = {
logo: '/imgs/module/userGuide.png',
@@ -215,7 +216,7 @@ export const KBSearchModule: AppModuleTemplateItemType = {
],
outputs: [
{
key: 'rawSearch',
key: rawSearchKey,
label: '源搜索数据',
type: FlowOutputItemTypeEnum.hidden,
response: true,