Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
赵月辉
/
fastgpt-migrated
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Unverified
Commit
5f3c8e90
authored
Sep 09, 2024
by
Archer
Committed by
GitHub
Sep 09, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix: workflow init status (#2649)
* i18n * fix: entry
parent
30057f01
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
11 deletions
+6
-11
packages/service/core/workflow/dispatch/index.ts
+0
-2
packages/service/core/workflow/dispatch/interactive/userSelect.ts
+5
-8
packages/web/i18n/zh/common.json
+1
-1
No files found.
packages/service/core/workflow/dispatch/index.ts
View file @
5f3c8e90
...
@@ -305,8 +305,6 @@ export async function dispatchWorkFlow(data: Props): Promise<DispatchFlowRespons
...
@@ -305,8 +305,6 @@ export async function dispatchWorkFlow(data: Props): Promise<DispatchFlowRespons
// 每个节点确定 运行/跳过 前,初始化边的状态
// 每个节点确定 运行/跳过 前,初始化边的状态
function
nodeRunBeforeHook
(
node
:
RuntimeNodeItemType
)
{
function
nodeRunBeforeHook
(
node
:
RuntimeNodeItemType
)
{
node
.
isEntry
=
false
;
runtimeEdges
.
forEach
((
item
)
=>
{
runtimeEdges
.
forEach
((
item
)
=>
{
if
(
item
.
target
===
node
.
nodeId
)
{
if
(
item
.
target
===
node
.
nodeId
)
{
item
.
status
=
'waiting'
;
item
.
status
=
'waiting'
;
...
...
packages/service/core/workflow/dispatch/interactive/userSelect.ts
View file @
5f3c8e90
import
{
import
{
DispatchNodeResponseKeyEnum
}
from
'@fastgpt/global/core/workflow/runtime/constants'
;
DispatchNodeResponseKeyEnum
,
SseResponseEventEnum
}
from
'@fastgpt/global/core/workflow/runtime/constants'
;
import
{
import
{
DispatchNodeResultType
,
DispatchNodeResultType
,
ModuleDispatchProps
ModuleDispatchProps
...
@@ -26,14 +23,12 @@ type UserSelectResponse = DispatchNodeResultType<{
...
@@ -26,14 +23,12 @@ type UserSelectResponse = DispatchNodeResultType<{
export
const
dispatchUserSelect
=
async
(
props
:
Props
):
Promise
<
UserSelectResponse
>
=>
{
export
const
dispatchUserSelect
=
async
(
props
:
Props
):
Promise
<
UserSelectResponse
>
=>
{
const
{
const
{
workflowStreamResponse
,
runningAppInfo
:
{
id
:
appId
},
histories
,
histories
,
chatId
,
node
,
node
:
{
nodeId
,
isEntry
},
params
:
{
description
,
userSelectOptions
},
params
:
{
description
,
userSelectOptions
},
query
query
}
=
props
;
}
=
props
;
const
{
nodeId
,
isEntry
}
=
node
;
// Interactive node is not the entry node, return interactive result
// Interactive node is not the entry node, return interactive result
if
(
!
isEntry
)
{
if
(
!
isEntry
)
{
...
@@ -48,6 +43,8 @@ export const dispatchUserSelect = async (props: Props): Promise<UserSelectRespon
...
@@ -48,6 +43,8 @@ export const dispatchUserSelect = async (props: Props): Promise<UserSelectRespon
};
};
}
}
node
.
isEntry
=
false
;
const
{
text
:
userSelectedVal
}
=
chatValue2RuntimePrompt
(
query
);
const
{
text
:
userSelectedVal
}
=
chatValue2RuntimePrompt
(
query
);
// Error status
// Error status
...
...
packages/web/i18n/zh/common.json
View file @
5f3c8e90
...
@@ -543,7 +543,7 @@
...
@@ -543,7 +543,7 @@
"module similarity"
:
"相似度"
,
"module similarity"
:
"相似度"
,
"module temperature"
:
"温度"
,
"module temperature"
:
"温度"
,
"module time"
:
"运行时长"
,
"module time"
:
"运行时长"
,
"module tokens"
:
"
总 tokens
"
,
"module tokens"
:
"
AI Tokens 消耗
"
,
"plugin output"
:
"插件输出值"
,
"plugin output"
:
"插件输出值"
,
"search using reRank"
:
"结果重排"
,
"search using reRank"
:
"结果重排"
,
"text output"
:
"文本输出"
,
"text output"
:
"文本输出"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment