Đếm token cho Claude: vì sao tiktoken lệch 17% ngân sách
This story is from 2026-09-16. It is preserved in the archive; the latest stories are on the live feed.
Originally published on NextFuture Budget guard của bạn báo prompt nặng 171.000 token, cửa sổ ngữ cảnh còn dư, và API vẫn trả về 400 "prompt too long". Bạn mở log, đếm lại bằng tay, và không hiểu con số sai ở đâu. Nguyên nhân thường nằm ở đúng một dòng: hàm đếm token dùng tiktoken cho một model khô…
Read the full story at DEV Community — AI ↗
Timeline · 1 report
- 2026-09-16 23:00 · DEV Community — AI
Đếm token cho Claude: vì sao tiktoken lệch 17% ngân sách