Skip to content

Commit

Permalink
Fix: workflow init status (#2649)
Browse files Browse the repository at this point in the history
* i18n

* fix: entry
  • Loading branch information
c121914yu authored Sep 9, 2024
1 parent 30057f0 commit 5f3c8e9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 11 deletions.
2 changes: 0 additions & 2 deletions packages/service/core/workflow/dispatch/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -305,8 +305,6 @@ export async function dispatchWorkFlow(data: Props): Promise<DispatchFlowRespons

// 每个节点确定 运行/跳过 前,初始化边的状态
function nodeRunBeforeHook(node: RuntimeNodeItemType) {
node.isEntry = false;

runtimeEdges.forEach((item) => {
if (item.target === node.nodeId) {
item.status = 'waiting';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
import {
DispatchNodeResponseKeyEnum,
SseResponseEventEnum
} from '@fastgpt/global/core/workflow/runtime/constants';
import { DispatchNodeResponseKeyEnum } from '@fastgpt/global/core/workflow/runtime/constants';
import {
DispatchNodeResultType,
ModuleDispatchProps
Expand All @@ -26,14 +23,12 @@ type UserSelectResponse = DispatchNodeResultType<{

export const dispatchUserSelect = async (props: Props): Promise<UserSelectResponse> => {
const {
workflowStreamResponse,
runningAppInfo: { id: appId },
histories,
chatId,
node: { nodeId, isEntry },
node,
params: { description, userSelectOptions },
query
} = props;
const { nodeId, isEntry } = node;

// Interactive node is not the entry node, return interactive result
if (!isEntry) {
Expand All @@ -48,6 +43,8 @@ export const dispatchUserSelect = async (props: Props): Promise<UserSelectRespon
};
}

node.isEntry = false;

const { text: userSelectedVal } = chatValue2RuntimePrompt(query);

// Error status
Expand Down
2 changes: 1 addition & 1 deletion packages/web/i18n/zh/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,7 @@
"module similarity": "相似度",
"module temperature": "温度",
"module time": "运行时长",
"module tokens": "总 tokens",
"module tokens": "AI Tokens 消耗",
"plugin output": "插件输出值",
"search using reRank": "结果重排",
"text output": "文本输出",
Expand Down

0 comments on commit 5f3c8e9

Please sign in to comment.