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。推理、工具调用、工具结果和服务端工具结果现在都会以带类型的事件流式输出。对于
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
English / 原文
Includes new features enabled by LLM 0.32:
- New models:
claude-fable-5,claude-sonnet-5, andclaude-opus-5. #75, #76- Added server-side tools for
WebSearch,WebFetch,CodeExecution, andAnthropicMCP, available through LLM's-Tinterface or Pythontools=. 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
llmCLI prompts now displays to standard error unless you pass--hide-reasoning/-R.- Simplified extended thinking to
thinkingandthinking_effort(low,medium,high,xhigh, ormax). Claude 5 models think by default;-o thinking 0disables thinking for Sonnet 5 and Opus 5, while Fable 5 always thinks.-R/--hide-reasoningnow omits reasoning from responses and logs. Thethinking_budget,thinking_display, andthinking_adaptiveoptions have been removed. #80