mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-15 20:35:54 +08:00
feat: start not inputs sys files
This commit is contained in:
parent
7746d37841
commit
ddd3136abd
@ -252,7 +252,21 @@ const useOneStepRun = <T>({
|
|||||||
let hasError = false
|
let hasError = false
|
||||||
try {
|
try {
|
||||||
if (!isIteration && !isLoop) {
|
if (!isIteration && !isLoop) {
|
||||||
res = await singleNodeRun(appId!, id, { inputs: submitData }) as any
|
const isStartNode = data.type === BlockEnum.Start
|
||||||
|
const postData: Record<string, any> = {}
|
||||||
|
if(isStartNode) {
|
||||||
|
const { '#sys.query#': query, '#sys.files#': files, ...inputs } = submitData
|
||||||
|
if(isChatMode)
|
||||||
|
postData.conversation_id = ''
|
||||||
|
|
||||||
|
postData.inputs = inputs
|
||||||
|
postData.query = query
|
||||||
|
postData.files = files || []
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
postData.inputs = submitData
|
||||||
|
}
|
||||||
|
res = await singleNodeRun(appId!, id, postData) as any
|
||||||
}
|
}
|
||||||
else if (isIteration) {
|
else if (isIteration) {
|
||||||
setIterationRunResult([])
|
setIterationRunResult([])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user