Skip to content

Commit

Permalink
fix: pin anthropic version, count_tokens was replaced with $ api (#87)
Browse files Browse the repository at this point in the history
`AttributeError: 'Anthropic' object has no attribute 'count_tokens'`
was caused by anthropic removing this method
https://github.com/anthropics/anthropic-sdk-python/releases/tag/v0.39.0
  • Loading branch information
jahwag authored Nov 7, 2024
1 parent d150ce3 commit d72bfd8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
7 changes: 3 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "claudesync"
version = "0.6.2"
version = "0.6.3"
authors = [
{name = "Jahziah Wagner", email = "[email protected]"},
]
Expand All @@ -23,12 +23,11 @@ dependencies = [
"sseclient_py>=1.8.0",
"tqdm>=4.66.5",
"pytest-cov>=5.0.0",
"claudesync>=0.5.4",
"crontab>=1.0.1",
"python-crontab>=3.2.0",
"Brotli>=1.1.0",
"anthropic>=0.37.1",
"cryptography>=3.4.7",
"anthropic>=0.34.2,<0.39.0",
"cryptography>=42.0.4",
]
keywords = [
"sync",
Expand Down
5 changes: 2 additions & 3 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,8 @@ setuptools>=73.0.1
sseclient_py>=1.8.0
tqdm>=4.66.5
pytest-cov>=5.0.0
claudesync>=0.5.4
crontab>=1.0.1
python-crontab>=3.2.0
Brotli>=1.1.0
anthropic>=0.37.1
cryptography>=3.4.7
anthropic>=0.34.2,<0.39.0
cryptography>=42.0.4

0 comments on commit d72bfd8

Please sign in to comment.