ttok 0.4 released with a --list-models command
Simon Willison released version 0.4 of ttok, his command-line token counting tool built on OpenAI's open source tiktoken library. The update fixes a Click warning, refreshes the CI setup, and adds a --list-models command for listing available models. The tool runs via uvx, so tokens can be counted with a command like cat file.txt | uvx ttok.
Why it matters: Lightweight token counters remain handy for developers estimating context limits or API costs.
Release: ttok 0.4 ttok is my CLI tool for counting tokens, using OpenAI's open source tiktoken library. It hasn't been in updated in a couple of years, but I finally fixed a Click warning, updated CI, and added a --list-models command to list available models. It works with uvx, so you can count tokens in anything like this: cat file.txt | uvx ttok Tags: projects, ai, openai, generative-ai, llms, tokenization…
This is the outlet's own summary. Read the full story on the original site.
Read the original →How we got here
- OpenAI's annualized revenue said to be closer to $50B, not $70BThe Information · OpenAI
- AI safety group paid influencers to spread superintelligence doom messaging36氪 人工智能 · OpenAI
- Hands-on: ChatGPT's Intelligent UI builds clickable lessons, not just text36氪 人工智能 · OpenAI
- OpenAI on the Jev-inspired Decisions API: built in a week36氪 人工智能 · OpenAI
- OpenAI's math advances spark a reckoning for academiaBloomberg Technology · OpenAI
- Microsoft makes its Execution Containers for AI agents generally availableCNET · OpenAI