返回行业内容

Simon Willison 发布 llm-anthropic 0.30:加 llm anthropic refresh 从 API 直接刷新模型列表、count 用免费接口预估 token

llm-anthropic 0.30

评分 36

导读

Simon Willison 软件发布:llm-anthropic 0.30 除新增 Claude Sonnet 5.5 外,加了 `llm anthropic refresh`——直接从 Anthropic API 刷新模型列表,这样不必为支持一个新发布的模型而专门再推一版;又加了 `llm anthropic count` 命令,用 Anthropic 免费的 token 计数 API 在发出提示词前返回该提示将消耗的 token 数。属他 llm CLI 的 Anthropic 插件小版本。

主体与标签

llm-anthropicAnthropic#产品更新#Anthropic#部署/工程

正文

Release: llm-anthropic 0.30

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.

打开原文 ↗