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
8ca5ebec
authored
Nov 07, 2025
by
Finley Ge
Committed by
GitHub
Nov 07, 2025
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
perf: read file node return splited raw texts (#5881)
parent
7225ebec
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
1 deletions
+11
-1
packages/global/core/workflow/template/system/readFiles/index.tsx
+8
-0
packages/service/core/workflow/dispatch/tools/readFiles.ts
+3
-1
No files found.
packages/global/core/workflow/template/system/readFiles/index.tsx
View file @
8ca5ebec
...
@@ -45,6 +45,14 @@ export const ReadFilesNode: FlowNodeTemplateType = {
...
@@ -45,6 +45,14 @@ export const ReadFilesNode: FlowNodeTemplateType = {
valueType
:
WorkflowIOValueTypeEnum
.
string
,
valueType
:
WorkflowIOValueTypeEnum
.
string
,
type
:
FlowNodeOutputTypeEnum
.
static
type
:
FlowNodeOutputTypeEnum
.
static
},
},
{
id
:
NodeOutputKeyEnum
.
rawResponse
,
key
:
NodeOutputKeyEnum
.
rawResponse
,
label
:
i18nT
(
'workflow:raw_response'
),
description
:
i18nT
(
'workflow:tool_raw_response_description'
),
valueType
:
WorkflowIOValueTypeEnum
.
arrayObject
,
type
:
FlowNodeOutputTypeEnum
.
static
},
Output_Template_Error_Message
Output_Template_Error_Message
]
]
};
};
packages/service/core/workflow/dispatch/tools/readFiles.ts
View file @
8ca5ebec
...
@@ -22,6 +22,7 @@ type Props = ModuleDispatchProps<{
...
@@ -22,6 +22,7 @@ type Props = ModuleDispatchProps<{
}
>
;
}
>
;
type
Response
=
DispatchNodeResultType
<
{
type
Response
=
DispatchNodeResultType
<
{
[
NodeOutputKeyEnum
.
text
]:
string
;
[
NodeOutputKeyEnum
.
text
]:
string
;
[
NodeOutputKeyEnum
.
rawResponse
]:
ReturnType
<
typeof
formatResponseObject
>
[];
}
>
;
}
>
;
const
formatResponseObject
=
({
const
formatResponseObject
=
({
...
@@ -75,7 +76,8 @@ export const dispatchReadFiles = async (props: Props): Promise<Response> => {
...
@@ -75,7 +76,8 @@ export const dispatchReadFiles = async (props: Props): Promise<Response> => {
return
{
return
{
data
:
{
data
:
{
[
NodeOutputKeyEnum
.
text
]:
text
[
NodeOutputKeyEnum
.
text
]:
text
,
[
NodeOutputKeyEnum
.
rawResponse
]:
readFilesResult
},
},
[
DispatchNodeResponseKeyEnum
.
nodeResponse
]:
{
[
DispatchNodeResponseKeyEnum
.
nodeResponse
]:
{
readFiles
:
readFilesResult
.
map
((
item
)
=>
({
readFiles
:
readFilesResult
.
map
((
item
)
=>
({
...
...
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