Skip to content

garcia-alejandro/gpt-token-counter

Repository files navigation

Chat GPT Price Calculator

The ChatGPT Price Calculator is a Python-based tool that estimates the cost of generating text using OpenAI's GPT language models based on the number of tokens and the chosen model. Users can compare the cost and number of tokens for each available model, and estimate the cost for a particular query using a file to get the large file. The tool does not require an OpenAI API key to use and provides a convenient way to estimate costs for generating text.

Table of Contents

Installation

Install the requirements: To install the packages listed in the requirements.txt file, run the following command:

pip install -r requirements.txt

This command will install all the packages listed in the requirements.txt file, along with their dependencies. If any package cannot be installed, pip will print an error message and exit.

Usage

Instructions for using the project go here. Run the script that you want using python:

python3 tokensChatGPT.py 

Available scripts:

compareEnconding.py calculateTokenPriceGPT.py

Contributing

Instructions for contributing to the project go here.

  1. Fork the project.
  2. Create your feature branch: git checkout -b feature/your_feature.
  3. Commit your changes: git commit -am 'Add some feature'.
  4. Push to the branch: git push origin feature/your_feature.
  5. Submit a pull request.

License

This project is licensed under the [License Name] License - see the LICENSE.md file for details.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages