跳到正文
Simon Willison·· 2026-10-19AI 评分18

llm-echo 0.5 发布:调试插件更新模拟 token 用量统计

llm-echo 0.5

AI 导读

Simon Willison 发布 llm-echo 0.5,这个 LLM 调试插件提供一个不涉及任何 LLM 的 "echo" 模型,只把收到的提示词原样回显。新版本更新了模拟 token 用量统计,将工具调用、系统提示词和推理 token 一并计入。示例中通过 uvx --with llm-echo 调用 `llm -m echo 'hi there' -o thinking 1 --usage`,输出显示 2 个输入 token、24 个输出 token。该插件用于在开发新版 LLM 时测试 PR。

来源:Simon Willison · simonwillison.net