mirror of
https://github.com/farcasclaudiu/Flowise.git
synced 2026-06-28 13:00:56 +03:00
Bugfix/Prevent empty user message when using STT (#4280)
prevent empty user message when using STT
This commit is contained in:
@@ -244,7 +244,7 @@ export const executeFlow = async ({
|
||||
...incomingInput
|
||||
}
|
||||
|
||||
const question = incomingInput.question || '' // Ensure question is never undefined
|
||||
let question = incomingInput.question || '' // Ensure question is never undefined
|
||||
let overrideConfig = incomingInput.overrideConfig ?? {}
|
||||
const uploads = incomingInput.uploads
|
||||
const prependMessages = incomingInput.history ?? []
|
||||
@@ -308,6 +308,7 @@ export const executeFlow = async ({
|
||||
logger.debug(`Speech to text result: ${speechToTextResult}`)
|
||||
if (speechToTextResult) {
|
||||
incomingInput.question = speechToTextResult
|
||||
question = speechToTextResult
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user