发布 llm-echo 0.5 — 为 LLM 提供 echo 模型的调试插件
我正在准备一个新的 LLM 版本,测试 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