←新闻详情

Simon Willison更新于 10月14日 11:43

ttok 0.4 发布:新增 --list-models 命令

Release: ttok 0.4

AI 导读

Simon Willison 发布基于 OpenAI 开源 tiktoken 库的 token 计数 CLI 工具 ttok 0.4,修复了一个 Click 警告、更新了 CI,并新增 --list-models 命令用于列出可用模型。该工具可通过 uvx 运行,用于统计文本的 token 数量。

正文

当前显示原文,中文全文译文尚未就绪。

8th October 2026

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:

Recent articles

Claude Haiku 5.5 - 7th October 2026; We're going to need default hard budget caps on pretty much everything - 3rd October 2026; OpenAI DevDay 2026 live blog - 29th September 2026

This is a beat by Simon Willison, posted on 8th October 2026.

Monthly briefing

Pay me to send you less!

来源

Simon Willison