Simon Willison·· 2026-09-29AI 评分31
llm-anthropic 0.30 发布,新增模型列表刷新与 token 计数命令
llm-anthropic 0.30
AI 摘要
llm-anthropic 0.30 发布,除支持 Claude Sonnet 5.5 外,新增 llm anthropic refresh 命令,可直接从 Anthropic API 刷新模型列表,无需为新模型单独发版。该版本还加入 llm anthropic count 命令,调用 Anthropic 免费 token 计数 API,在发送提示词前返回其将消耗的 token 数。
正文 · 原文
In addition to Claude Sonnet 5.5, this release adds the ability to run llm anthropic refresh to refresh the list of Anthropic models directly from their API - which means I don't need to push a new release just to add support for a newly released model.
I also added an llm anthropic count command which can use their free token counting API to return a count of tokens that will be used by any prompt, before you send that prompt.
来源:Simon Willison · simonwillison.net
00