feat: remove realmode

This commit is contained in:
sd0ric4
2025-03-26 15:56:03 +08:00
parent be1e10cb71
commit dfc0dd5834
2 changed files with 1 additions and 3 deletions

View File

@@ -65,7 +65,6 @@ export type ModuleDispatchProps<T> = ChatDispatchProps & {
runtimeNodes: RuntimeNodeItemType[];
runtimeEdges: RuntimeEdgeItemType[];
params: T;
realmode: 'chat' | 'debug' | 'test';
};
export type SystemVariablesType = {

View File

@@ -581,8 +581,7 @@ export async function dispatchWorkFlow(data: Props): Promise<DispatchFlowRespons
runtimeNodes,
runtimeEdges,
params,
mode: props.mode === 'debug' ? 'test' : props.mode,
realmode: props.mode
mode: props.mode === 'debug' ? 'test' : props.mode
};
// run module