Follow Discord
Sweep 22 Oct 2026 · 04:32Z Build v2.1.308 527 read Stable v2.1.308 Latest v2.1.308 Next v2.1.308 Feeds RSS JSON llms.txt llms-full.txt Unofficial
One change · api

Count tokens in a Message changedapi/beta/messages/count_tokens

Recorded here
Lines+1added
Lines−1removed
From line 4,050 where the diff opens
First seen 14 Aug 2026 this site's first read of the page
Recorded edits25to this page, all time

The whole hunk

from line 4050, old and new numbered
/
lines
from line 4050
40504050 "role": "user"
40514051 }
40524052 ],
4053 "model": "claude-opus-5",
4053 "model": "claude-opus-5-5",
40544054 "system": [
40554055 {
40564056 "text": "Today'\''s date is 2024-06-01.",
Feedback