Chat app using flowise API

I am trying to built a chat app using a flowise API for this I cloned a GPT template from marketplace . But I am facing issue with chat history I want a chat session for that particular time without keeping any record. will you please suggest how to do this.

Do I need this function: // If chatHistory isn't a list, make it a list and then add newChat if (chatHistory is List) { chatHistory.add(newChat); return chatHistory; } else { return [newChat];

if yes , then please tell me how to configure it.

Thank you in Advance!

3
2 replies