热门
导航
快讯
推荐文章
热门
导航
快讯
推荐文章
#TiktokenSharp
TiktokenSharp:为OpenAI模型提供高效的Token计算工具
2 个月前
TiktokenSharp是一个C#库,专门用于OpenAI模型的Token计算,支持o200k_base、cl100k_base和p50k_base编码。它为开发者提供了一种简单高效的方式来处理模型输入的Token限制问题。
TiktokenSharp
C#
gpt-3.5-turbo
NuGet
Benchmark Test
Github
开源项目
2 个月前
相关项目
TiktokenSharp
TiktokenSharp 是一个提供 C# 版文本编码和解码方法的库,基于官方 Rust 实现,支持多个编码格式如 `o200k_base`、`cl100k_base` 和 `p50k_base`。通过 NuGet 包,可以轻松集成到 C# 项目中。首次使用时,会自动下载必要的 tiktoken 文件,后续使用无需重新下载。项目定期更新,持续优化算法效率,并支持最新的 OpenAI 模型。更多细节请查看官方文档和 GitHub 页面。
查看
使用协议
隐私政策
广告服务
投诉举报邮箱: service@vectorlightyear.com
@2024 懂AI
·
鲁ICP备2024100362号-6
·
鲁公网安备37021002001498号