zohaibtariq / count-gpt-token
A laravel project used to count token for chat gpt 2 & 3 prompt.
Installs: 2 366
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Requires
- php: ^8.1
README
It will count tokens for chatgpt (2, 3) prompt
Installation
You can install the package via composer:
composer require zohaibtariq/count-gpt-token:dev-main
Usage
use CountGptToken; CountGptToken::count_token('hello world'); // it can be your chatgpt2 or chatgpt3 prompt
compare results from online playground OPEN AI PLAYGROUND TOKEN COUNT
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
License
The MIT License (MIT). Please see License File for more information.