ttok 0.4 发布新功能
ttok 0.4
Simon 发布了 ttok 0.4,现在可以列出可用模型,还能通过管道快速计算文件 token 数。
ttok 0.4 版本更新,修复了 Click 警告并更新了 CI。新增 --list-models 命令可列出可用模型。该工具使用 OpenAI 开源的 tiktoken 库,支持与 uvx 配合使用。
ttok 0.4
Release: ttok 0.4 ttok is my CLI tool for counting tokens, using OpenAI's open source tiktoken library. It hasn't been in updated in a couple of years, but I finally fixed a Click warning, updated CI, and added a --list-models command to list available models. It works with uvx , so you can count tokens in anything like this: cat file.txt | uvx ttok Tags: projects , ai , openai , generative-ai , llms , tokenization