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

Add ability to clear chat history #97

Merged
merged 2 commits into from
Sep 22, 2023
Merged

Add ability to clear chat history #97

merged 2 commits into from
Sep 22, 2023

Conversation

rwood-97
Copy link
Contributor

This PR:

  • Adds the ability to use the /clear_history command in slack to clear the chat history.

Unsure what happens if you use a non-llama_index model.
Will need to address this.

@rchan26
Copy link
Collaborator

rchan26 commented Sep 21, 2023

I think this is almost done, what do you think @rwood-97? I noticed that Slack doesn't like having same names for shortcuts (maybe there is a proper way), so I've made a one-line change here and the shortcuts are called /clear_history_llama_cpp and /clear_history_azure_llama_index for the llama-cpp and Azure models respectively.

Both shortcuts are working at the moment under this branch.

Copy link
Collaborator

@rchan26 rchan26 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good and seems to work correctly!

@rwood-97 rwood-97 marked this pull request as ready for review September 22, 2023 10:23
@rchan26 rchan26 merged commit 6132e0b into main Sep 22, 2023
1 check passed
@rchan26 rchan26 deleted the chat_history branch September 22, 2023 10:25
rchan26 added a commit that referenced this pull request Sep 27, 2023
rchan26 added a commit that referenced this pull request Nov 2, 2023
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

Successfully merging this pull request may close these issues.

2 participants