llm-echo 0.5

Simon Willison's Blog 工具

摘要

llm-echo 0.5 发布更新,改进了模拟 token 用量统计,现在会考虑工具调用、系统提示和推理 token,用于调试 LLM CLI。

暂无内容
查看原文
查看缓存全文

缓存时间: 2026/10/19 03:39

# 发布:llm-echo 0.5 来源:https://simonwillison.net/2026/Oct/18/llm-echo/ 我正在筹备 LLM (https://llm.datasette.io/) 的新版本发布,在测试各个 PR 的过程中,我重新审视了 `llm-echo` 这个调试插件。它提供了一个完全不涉及任何 LLM 的"模型"——只是把喂给它的提示词原样重复回来。新版现在更新了模拟的 token 用量统计,会把工具调用、系统提示词以及推理 token 计算在内。 使用示例: ``` uvx --with llm-echo llm -m echo 'hi there' -o thinking 1 --usage ``` 输出结果: ``` First I consider the prompt, then I decide what to say. { "prompt": "hi there", "system": "", "attachments": [], "stream": true, "previous": [] } Token usage: 2 input, 24 output ```

相似文章

llm-echo 0.5a0

Simon Willison's Blog

llm-echo 0.5a0 版本新增了 -o thinking 1 选项,用于测试与 LLM 0.32a0 及更高版本的兼容性。该插件提供了一个用于自动化测试的模拟回声模型。

llm-anthropic 0.25

Simon Willison's Blog

llm-anthropic 0.25 发布,支持 Claude Opus 4.7,新增 thinking_effort 和 thinking_display 选项,增加默认 max_tokens,并移除过时的 beta 头。

llm-anthropic 0.25.1

Simon Willison's Blog

llm-anthropic 0.25.1 新增对 Claude Opus 4.8 的支持、快速模式选项,并更新了默认的 max_tokens 行为。

LLM 0.33

Simon Willison's Blog

LLM工具0.33版本发布,包括OpenAI依赖项升级、嵌入键支持增强、可重用提示模板,以及Responses API模型的推理摘要选项。

llm 0.32a3

Simon Willison's Blog

llm 0.32a3版本发布,这是Simon Willison的命令行工具的一个alpha版本,用于与大语言模型交互。