Simon Willison的llm CLI新增模板复用和Embedding key传递功能,修复了OpenAI 3.x迁移问题。
本次更新亮点:
升级至 OpenAI Python 库 3.x,并将 HTTP 客户端依赖从 httpx 切换为 httpx2。#1608, #1631
昨天我快速发布了 0.32.1 修复版本,但这次是更全面的修复。
llm embed 和 llm embed-multi 现在支持 --key 参数。Python 的 EmbeddingModel.embed()、EmbeddingModel.embed_multi()、Collection.embed() 和 Collection.embed_multi() 方法也支持 key= 参数,将每次调用解析后的 key 传递给 embedding 插件,而不会改变共享的模型状态。原有读取 self.key 的插件通过兼容性回退机制继续正常工作。感谢 ChrisJr404。#757, #1620
Embedding 模型现在使用了与常规 LLM 模型相同的 key 模式。
llm prompt -t/--template 现在可以重复使用,以按顺序组合多个模板。这使得可以将一个模板中的模型配置和选项与另一个模板中的 prompt 结合使用。
这就解锁了一种巧妙的模式:可以创建将模型与一组默认选项打包在一起的模板:
llm -m gpt-5.6-luna -o reasoning_effort high --save lhigh
llm "Generate an SVG of a pelican riding a bicycle" --save pelican
# Combine and run the templates
llm -t lhigh -t pelican
支持推理功能的 Responses API 模型现在提供 reasoning_summary 选项,可选值为 auto、concise 和 detailed。可与 llm openai endpoint --responses 配合使用。#1600
这个功能对于测试不同模型(它们各自对 OpenAI Responses API 有自己的实现)特别有用。
Conceptual integrity and counting lines of code - 2026 年 8 月 19 日
Qwen 3.8 27B is excellent, but it defaults to wildly overthinking things - 2026 年 8 月 16 日
Now we have a timeline of the OpenAI accidental attack against Hugging Face - 2026 年 8 月 7 日
本文由 Simon Willison 发布于 2026 年 8 月 22 日。
Sponsor me for $10/month and get a curated email digest of the month's most important LLM developments.
Pay me to send you less!