uday-rana / codeshift

A command-line tool that translates source code files into a chosen programming language.
MIT License
5 stars 4 forks source link

Issue 10 - Add Token Usage Option #11

Closed mayank-Pareek closed 1 week ago

mayank-Pareek commented 1 week ago

Description:

This pull request adds a new --token-usage flag (with a shorthand -t option) to the program, allowing users to see the token usage information when making requests to the API. This flag enables the program to display the number of prompt tokens, completion tokens, and total tokens used by the request.

Changes Made:

Notes:

Please let me know if any there are any additional changes required.

mayank-Pareek commented 1 week ago

Thanks for pointing out the required changes, I have committed some new changes to the branch, please review and suggest if this needs any more changes.