TiktokenSharp and SharpToken

TiktokenSharp
52
Established
SharpToken
41
Emerging
Maintenance 10/25
Adoption 10/25
Maturity 16/25
Community 16/25
Maintenance 2/25
Adoption 10/25
Maturity 16/25
Community 13/25
Stars: 126
Forks: 18
Downloads:
Commits (30d): 0
Language: C#
License: MIT
Stars: 254
Forks: 19
Downloads:
Commits (30d): 0
Language: C#
License: MIT
No Package No Dependents
Stale 6m No Package No Dependents

About TiktokenSharp

aiqinxuancai/TiktokenSharp

Token calculation for OpenAI models, using `o200k_base` `cl100k_base` `p50k_base` encoding.

This is a C# library that helps developers accurately count tokens for text processed by OpenAI's large language models like GPT-3.5 and GPT-4. It takes a model name or encoding identifier as input, along with your text, and outputs the precise token count. This tool is for C# developers building applications that integrate with OpenAI APIs and need to manage token limits effectively.

C# development OpenAI API integration token management large language models application development

About SharpToken

dmitry-brazhenko/SharpToken

SharpToken is a C# library for tokenizing natural language text. It's based on the tiktoken Python library and designed to be fast and accurate.

This is a C# library for developers building applications that interact with large language models (LLMs) like GPT or Claude. It takes natural language text and converts it into numerical "tokens" or vice-versa, which is essential for managing input length and processing text efficiently for AI models. Developers working with .NET applications who need to pre-process or post-process text for LLMs would use this.

AI application development Natural Language Processing Large Language Models Text pre-processing .NET development

Related comparisons

Scores updated daily from GitHub, PyPI, and npm data. How scores work