In this repository we provide implementation for token-reduction techniques introduce in our blog "Reduce Your Costs by 30% When Using GPT-3 for Python Code"
Example code for the proposed techniques is provided in example.py
.
Note that both tabification and minimization operations do not change the code functionality.
Feel free to contact if there are any questions or issues.
To perform code minimization, we use the excellent Python Minifier package.