DevKit:經測試公式的單檔計算器程式庫新增 LLM 成本計算器
DevKit: a one-file calculator library with tested formulas — now with an LLM cost calculator
DevKit 是一個包含 69 種工具的單檔計算器程式庫,所有工具均在瀏覽器用戶端運作,並以分頁整理。新增的 LLM 成本計算器可估算請求成本,tokens/sec 模擬器則顯示生成速度如何影響所需時間;計算公式均經測試驗證。
I kept reaching for a quick calculator and landing on pages crowded with ads, pop-ups, and distractions. So I built the tool I wanted instead: a lean calculator site that gets out of the way.
DevKit is a one-file calculator library with 69 tools, all running client-side in your browser. The tools are organised into tabbed pages, so you can find the one you need without scrolling through a long list.
What's new: an LLM cost calculator
The newest addition is for anyone working with language models. The LLM cost calculator helps you estimate what a request will cost, and the tokens/sec simulator shows how generation speed affects timing. It's the part I reach for most when I'm planning an LLM feature and want a quick sense of cost and speed before writing code.
Verified formulas
A calculator is only useful if you can trust its answers, so the formulas in DevKit are verified with tests. That gives me a way to catch mistakes when a formula changes, instead of hoping the numbers look right.
Try it
What calculator should I add next? Let me know in the comments — I'd love to hear what you'd actually use.
來源:DEV Community · dev.to