Fix local state sync issue, STT auth issue, and add none option for speech to text

This commit is contained in:
Ilango
2024-02-20 23:29:14 +05:30
parent 8bad360796
commit 97a376d6e2
3 changed files with 116 additions and 92 deletions
+6 -4
View File
@@ -1530,10 +1530,12 @@ export class App {
if (chatflow.speechToText) {
const speechToTextProviders = JSON.parse(chatflow.speechToText)
for (const provider in speechToTextProviders) {
const providerObj = speechToTextProviders[provider]
if (providerObj.status) {
isSpeechToTextEnabled = true
break
if (provider !== 'none') {
const providerObj = speechToTextProviders[provider]
if (providerObj.status) {
isSpeechToTextEnabled = true
break
}
}
}
}