mirror of
https://github.com/farcasclaudiu/Flowise.git
synced 2026-06-29 11:01:18 +03:00
add fix
This commit is contained in:
@@ -116,16 +116,7 @@ const runPrediction = async (
|
|||||||
*/
|
*/
|
||||||
const promptValues = handleEscapeCharacters(promptValuesRaw, true)
|
const promptValues = handleEscapeCharacters(promptValuesRaw, true)
|
||||||
|
|
||||||
if (inputVariables.length === 1) {
|
if (inputVariables.length > 0) {
|
||||||
if (isStreaming) {
|
|
||||||
const handler = new CustomChainHandler(socketIO, socketIOClientId)
|
|
||||||
const res = await chain.run(input, [loggerHandler, handler])
|
|
||||||
return res
|
|
||||||
} else {
|
|
||||||
const res = await chain.run(input, [loggerHandler])
|
|
||||||
return res
|
|
||||||
}
|
|
||||||
} else if (inputVariables.length > 1) {
|
|
||||||
let seen: string[] = []
|
let seen: string[] = []
|
||||||
|
|
||||||
for (const variable of inputVariables) {
|
for (const variable of inputVariables) {
|
||||||
|
|||||||
Reference in New Issue
Block a user