Skip to content

Commit

Permalink
Change default model to claude-3-5-sonnet-20240620
Browse files Browse the repository at this point in the history
  • Loading branch information
Elehiggle committed Jul 9, 2024
1 parent 6c8830c commit 7f4c0d9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ This project is a chatbot for Mattermost that integrates with the Anthropic API
| Parameter | Description |
|------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `AI_API_KEY` | Required. Your Anthropic API key |
| `AI_MODEL` | The Anthropic model to use. Default: "claude-3-opus-20240229" |
| `AI_MODEL` | The Anthropic model to use. Default: "claude-3-5-sonnet-20240620" |
| `MATTERMOST_URL` | Required. The URL of your Mattermost server |
| `MATTERMOST_TOKEN` | Required if not using user/password. The bot token (alternatively personal access token) with relevant permissions created specifically for the chatbot. Don't forget to add the bot account to the team |
| `MATTERMOST_USERNAME` | Required if not using token. The username of the dedicated Mattermost user account for the chatbot (if using username/password login) |
Expand Down Expand Up @@ -121,7 +121,7 @@ You can also run the chatbot using Docker. Use the following command to run the
```bash
docker run -d --name chatbotclaude \
-e AI_API_KEY="your_ai_api_key" \
-e AI_MODEL="claude-3-opus-20240229" \
-e AI_MODEL="claude-3-5-sonnet-20240620" \
-e MATTERMOST_URL="mattermostinstance.example.com" \
-e MATTERMOST_TOKEN="your_mattermost_token" \
-e MAX_TOKENS="4096" \
Expand Down
2 changes: 1 addition & 1 deletion chatbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def wrapped_f(*args, **kwargs):

# AI parameters
api_key = os.environ["AI_API_KEY"]
model = os.getenv("AI_MODEL", "claude-3-opus-20240229")
model = os.getenv("AI_MODEL", "claude-3-5-sonnet-20240620")
ai_api_baseurl = os.getenv("AI_API_BASEURL", None)
timeout = int(os.getenv("AI_TIMEOUT", "120"))
max_tokens = int(os.getenv("MAX_TOKENS", "4096"))
Expand Down

0 comments on commit 7f4c0d9

Please sign in to comment.