Skip to content

Commit

Permalink
✨ need to have different clear_history commands for different models
Browse files Browse the repository at this point in the history
  • Loading branch information
rchan26 committed Sep 21, 2023
1 parent 1824dd8 commit 9d28210
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion slack_bot/slack_bot/bot/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ async def __call__(self, client: SocketModeClient, req: SocketModeRequest) -> No
command = req.payload["command"]
user_id = req.payload["user_id"]

if command == "/clear_history":
if command.startswith("/clear_history"):
if self.model.mode == "chat":
logging.info(f"Clearing {user_id}'s history")
if self.model.chat_engine.get(user_id) is not None:
Expand Down

0 comments on commit 9d28210

Please sign in to comment.