remove console log
This commit is contained in:
parent
f57a08f59b
commit
5ff720d66c
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue