insight Simon Willison 2026-08-04T22:00 正文 ok 151 words

llm-anthropic 0.26 发布:支持 Claude 5 模型与服务端工具

英文标题:llm-anthropic 0.26

llm-anthropic 0.26 基于 LLM 0.32 新增功能,加入 claude-fable-5、claude-sonnet-5 和 claude-opus-5 三个模型。该版本支持 WebSearch、WebFetch、CodeExecution 和 AnthropicMCP 等服务端工具,可通过 LLM 的 `-T` 接口或 Python 的 `tools=` 使用。扩展思考配置被简化为 `thinking` 与 `thinking_effort`,Claude 5 默认启用思考能力。对于开发者而言,此次更新统一了工具调用和推理事件流式处理方式,并移除了旧版 Web 搜索及部分思考参数。
打开原文相关 6 · 机会 2

中文

包含由 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。推理、工具调用、工具结果和服务端工具结果现在都会以带类型的事件流式输出。对于 llm CLI 提示词,推理内容现在会输出至标准错误,除非传入 --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

English / 原文

Includes new features enabled by LLM 0.32:

  • New models: claude-fable-5, claude-sonnet-5, and claude-opus-5. #75, #76
  • Added server-side tools for WebSearch, WebFetch, CodeExecution, and AnthropicMCP, available through LLM's -T interface or Python tools=. The previous -o web_search* options have been removed in favor of -T WebSearch. #79
  • Upgraded to llm>=0.32. Reasoning, tool calls, tool results, and server-side tool results now stream as typed events. Reasoning for llm CLI prompts now displays to standard error unless you pass --hide-reasoning/-R.
  • Simplified extended thinking to thinking and thinking_effort (low, medium, high, xhigh, or max). Claude 5 models think by default; -o thinking 0 disables thinking for Sonnet 5 and Opus 5, while Fable 5 always thinks. -R/--hide-reasoning now omits reasoning from responses and logs. The thinking_budget, thinking_display, and thinking_adaptive options have been removed. #80