* perf: some log, chatTest histories slice; http request failed tip

* fix: ssr render

* perf: if else node ui and fix value type select
This commit is contained in:
Archer
2024-05-07 15:27:05 +08:00
committed by GitHub
parent 2053bbdb1b
commit 8f9203c053
21 changed files with 164 additions and 137 deletions

View File

@@ -46,7 +46,7 @@ export const IfElseNode: FlowNodeTemplateType = {
{
id: NodeOutputKeyEnum.ifElseResult,
key: NodeOutputKeyEnum.ifElseResult,
label: 'IF ELSE',
label: '判断结果',
valueType: WorkflowIOValueTypeEnum.string,
type: FlowNodeOutputTypeEnum.static
}

View File

@@ -40,7 +40,7 @@ export type FlowNodeCommonType = {
};
export type FlowNodeTemplateType = FlowNodeCommonType & {
id: string; // module id, unique
id: string; // node id, unique
templateType: `${FlowNodeTemplateTypeEnum}`;
// show handle
@@ -132,11 +132,12 @@ export type ChatDispatchProps = {
chatId?: string;
responseChatItemId?: string;
histories: ChatItemType[];
variables: Record<string, any>;
query: UserChatItemValueItemType[];
variables: Record<string, any>; // global variable
query: UserChatItemValueItemType[]; // trigger query
stream: boolean;
detail: boolean; // response detail
maxRunTimes: number;
isToolCall?: boolean;
};
export type ModuleDispatchProps<T> = ChatDispatchProps & {