zohaibtariq/count-gpt-token

A laravel project used to count token for chat gpt 2 & 3 prompt.

1.0.0 2023-08-13 07:46 UTC

This package is auto-updated.

Last update: 2024-10-13 10:17:26 UTC


README

Latest Version on Packagist Total Downloads

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.