remove console log

This commit is contained in:
Henry 2023-10-31 14:11:11 +00:00
parent f57a08f59b
commit 5ff720d66c
3 changed files with 1 additions and 5 deletions

View File

@ -187,7 +187,6 @@ const runPrediction = async (
return formatResponse(res?.text)
} else {
const res = await chain.call(options, [loggerHandler, ...callbacks])
console.log('formatResponse=', formatResponse(res?.text))
return formatResponse(res?.text)
}
} else {

View File

@ -980,7 +980,7 @@ export class App {
if (nodeToExecuteData.instance) checkMemorySessionId(nodeToExecuteData.instance, chatId)
let result = isStreamValid
const result = isStreamValid
? await nodeInstance.run(nodeToExecuteData, incomingInput.question, {
chatHistory: incomingInput.history,
socketIO,

View File

@ -164,20 +164,17 @@ export const ChatMessage = ({ open, chatflowid, isDialog }) => {
{ message: data.text, sourceDocuments: data.sourceDocuments, type: 'apiMessage' }
])
}
console.log('here1=', data.text)
addChatMessage(data.text, 'apiMessage', data.sourceDocuments)
} else if (typeof data === 'object' && data.json) {
const text = '```json\n' + JSON.stringify(data.json, null, 2)
if (!isChatFlowAvailableToStream) {
setMessages((prevMessages) => [...prevMessages, { message: text, type: 'apiMessage' }])
}
console.log('here2=', text)
addChatMessage(text, 'apiMessage')
} else {
if (!isChatFlowAvailableToStream) {
setMessages((prevMessages) => [...prevMessages, { message: data, type: 'apiMessage' }])
}
console.log('here3=', data)
addChatMessage(data, 'apiMessage')
}
setLoading(false)