I have a main table, that based on row selection polulates a tab container. One of the tabs has an AI chat component (called chatAI). When a ask a question, I corrrectly get a response, but when I click on the table to populate with new data, the chat history remains.
I have set watched values in the table.
I have added events on the table to clear history and clear value on the Ai chat component.
If I remove disable logic on the AI data source, the previous quesiton gets answered again.
Do you have any suggestions on what I am missing to clear the AI chat component history?
I reviewed your issue and noticed that you’re using a chat component inside a tab container, which might be related to the problem. I’m sharing a forum link below that could help:
Please check it out, and if it doesn’t resolve your issue, let me know.
Hey @klautier, you are right. The option to auto clear the LLM Chat component on page load is not available yet. We have a feature request open and I added your +1.
For now, the simplest workaround is to add a short delay, then call clearHistory() after the component loads. Just a heads up that you may see a quick flash of the previous messages before they clear.