GitHub · 去对齐工具与仓库·· 19 天前AI 评分30
rust-aicost:基于 genai 类型的 Rust LLM 用量成本计算库
zcoder-run/rust-aicost
来源与原文
GitHub · 去对齐工具与仓库
发布时间:(北京时间)
阅读原始来源 · github.com ↗完整链接与内容说明
https://github.com/zcoder-run/rust-aicost
本站目前仅有 AI 导读与摘要,未展示原文正文;技术细节、代码和完整结论请查看原始来源。
AI 导读
zcoder-run 开源了 rust-aicost,一个基于 genai crate 类型计算 LLM 使用成本的 Rust 库,支持 OpenAI、Anthropic、Gemini、DeepSeek、Groq、xAI、Fireworks、Together、Zai 等多家提供商。它能分别统计普通 token、缓存 token(读/写)和推理 token,并通过 AiCost 结构体提供总成本、输入/输出等细粒度费用拆分。库采用 Apache 2.0 和 MIT 双许可证。
来源:GitHub · 去对齐工具与仓库 · github.com