Go to file
Raven Scott c14635769d feat: Add error handling for empty response in chatbot conversation
This commit adds a new block of code to handle cases where the chatbot generates an empty response, which was previously causing a delay of one message in the conversation. The new code selects a random message from a predefined list of human-like responses to notify the user that an error has occurred, then resets the conversation history and deletes the memory map for that user. This ensures that subsequent messages from the same user will not be delayed due to the empty response.
2023-04-10 02:53:37 +02:00
assets rand 2023-04-10 02:42:58 +02:00
.gitignore first 2023-04-09 18:07:32 +02:00
default.env moving vars to env updating default env 2023-04-10 02:19:50 +02:00
llamabot.js feat: Add error handling for empty response in chatbot conversation 2023-04-10 02:53:37 +02:00