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.
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.
Instructions for using the project go here. Run the script that you want using python:
python3 tokensChatGPT.py
Available scripts:
compareEnconding.py calculateTokenPriceGPT.py
Instructions for contributing to the project go here.
- Fork the project.
- Create your feature branch:
git checkout -b feature/your_feature
. - Commit your changes:
git commit -am 'Add some feature'
. - Push to the branch:
git push origin feature/your_feature
. - Submit a pull request.
This project is licensed under the [License Name] License - see the LICENSE.md file for details.