Skip to content

Commit

Permalink
Remove debug print, update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Elehiggle committed Jan 19, 2025
1 parent 32b5ce6 commit e2f1dce
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ This project is a chatbot for Mattermost that integrates with the Anthropic API
- Sends typing indicators to show that the chatbot is processing the message
- Utilizes a thread pool to handle multiple requests concurrently (due to `mattermostdriver-asyncio` being outdated)
- Offers **Docker support** for easy deployment
- Supports rudimentary caching. Anthropic charges for written cache, so if your environment simply says "hi" often
without any meaningful conversations, you
might have increased costs. Hit me up if you need an option to disable caching.

## Prerequisites

Expand Down
2 changes: 0 additions & 2 deletions chatbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -799,8 +799,6 @@ def process_message(event_data):
# Add cache_control to the last message in the list
messages[-1]["content"][-1]["cache_control"] = {"type": "ephemeral"}

print(messages)

# If the message is not part of a thread, reply to it to create a new thread
handle_generation(current_message, messages, channel_id, post_id if not root_id else root_id, initial_time)
except Exception as e:
Expand Down

0 comments on commit e2f1dce

Please sign in to comment.