Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

customMessages overridden by standard chatbot messages #182

Open
xamat opened this issue Jan 19, 2024 · 1 comment
Open

customMessages overridden by standard chatbot messages #182

xamat opened this issue Jan 19, 2024 · 1 comment

Comments

@xamat
Copy link

xamat commented Jan 19, 2024

I have implemented a fully functional customMessage. However, my problem is that every time I pass a normal message using e.g. createChatBotMessage, the customMessages get overridden to that last "standard' message. So, custom messages never persist in the conversation. This happens even when directly copying and pasting the original example from @FredrikOseberg here. If you flip the order of the messages in the initialMessages and put the createCustomMessage before the createChatBotMessage, you will no longer see the custom one.

This issue seems to be referenced in issue #87 and solved by @viktorsvil in a way that I cannot reproduce.

@xamat
Copy link
Author

xamat commented Jan 19, 2024

Just to add a bit more details to what "overridden" means: Any time a new bot message is created through CreateChatBotMessage, it is not only rendered in the last position in the chat, but it is also rendered wherever a customMessage was. So, in my case, I end up having the last message duplicated in the initial one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant