Bugfix/empty vars (#4892)
* update workspaceId to vars * fix vars and duplicated response
This commit is contained in:
parent
8a6b95ef0e
commit
1bed5a264e
|
|
@ -181,7 +181,8 @@ class ExecuteFlow_Agentflow implements INode {
|
|||
if (selectedFlowId === options.chatflowid) throw new Error('Cannot call the same agentflow!')
|
||||
|
||||
let headers: Record<string, string> = {
|
||||
'Content-Type': 'application/json'
|
||||
'Content-Type': 'application/json',
|
||||
'flowise-tool': 'true'
|
||||
}
|
||||
if (chatflowApiKey) headers = { ...headers, Authorization: `Bearer ${chatflowApiKey}` }
|
||||
|
||||
|
|
|
|||
|
|
@ -87,7 +87,9 @@ export class PredictionQueue extends BaseQueue {
|
|||
return await executeCustomNodeFunction({
|
||||
appDataSource: this.appDataSource,
|
||||
componentNodes: this.componentNodes,
|
||||
data: executeCustomFunctionData.data
|
||||
data: executeCustomFunctionData.data,
|
||||
workspaceId: executeCustomFunctionData.workspaceId,
|
||||
orgId: executeCustomFunctionData.orgId
|
||||
})
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue