Metadata-Version: 2.1
Name: token-counter
Version: 0.1.5
Summary: A token counter for counting tokens of LLM inputs and outputs
Home-page: https://gitlab.com/labsoft-ai/token-and-cost-manager
Author: Momcilo Krunic
Author-email: momcilo.krunic@labsoft.ai
License: MIT
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Description-Content-Type: text/markdown
Requires-Dist: tiktoken


This function is responsible for counting the number of tokens in the text provided through an API call. It analyzes both the input text sent to the LLM and the output text generated by the LLM, counting the tokens in each to provide the necessary data for cost calculation.


