perf: quote response
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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`;
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user