Simon Willison 7小时前 · 2026-08-05 12:23:00 · 0 阅读
llm-anthropic 0.26 版本发布
发布
llm-anthropic 0.26
—— 通过 LLM 访问 Anthropic 的模型,包括 Claude 系列
借助 LLM 0.32 的支持带来以下新功能:
- 新增模型:
claude-fable-5、claude-sonnet-5和claude-opus-5。#75、#76- 新增服务端工具
WebSearch、WebFetch、CodeExecution和AnthropicMCP,可通过 LLM 的-T参数或 Python 的tools=方式使用。原-o web_search*选项已移除,统一改用-T WebSearch。#79- 升级依赖至 llm>=0.32。推理、工具调用、工具结果以及服务端工具结果现在均以类型化事件的形式进行流式输出。
llmCLI 提示的推理内容默认输出到标准错误,除非传入--hide-reasoning/-R参数。- 扩展思考功能简化为
thinking和thinking_effort(low、medium、high、xhigh或max)。Claude 5 系列模型默认开启思考;-o thinking 0可关闭 Sonnet 5 和 Opus 5 的思考功能,而 Fable 5 始终启用思考。-R/--hide-reasoning用于在响应和日志中省略推理内容。thinking_budget、thinking_display和thinking_adaptive选项已移除。#80
原始来源: Simon Willison