Buckets:

download
raw
299 Bytes
# import anthropic
# # Initialize the Anthropic client
# client = anthropic.Anthropic()
# # Text you want to count tokens for
# text = "Sample text"
# # Count tokens
# # not accurate for 3.0 and above models
# total_tokens = client.count_tokens(text)
# print(f"Number of tokens: {total_tokens}")

Xet Storage Details

Size:
299 Bytes
·
Xet hash:
7e9abfffe21d2cb54521327568be8c74abb34ed4e96e6372020e7522a93ce54a

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.