Simon Willison·· 16 天前AI 评分27
llm-anthropic 0.30 发布:支持刷新模型列表与 token 计数
llm-anthropic 0.30
AI 导读
Simon Willison 发布 llm-anthropic 0.30,新增 llm anthropic refresh 命令,可直接从 Anthropic API 刷新模型列表,无需为新模型单独发版;同时支持 Claude Sonnet 5.5。该版本还加入 llm anthropic count 命令,调用免费的 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