Avoid token attacks on GPT-3 apps with Tiktoken
Count GPT-3 tokens before further processing
Most production GPT-3 apps use character count/word count to throttle free/paid usage! But GPT-3 operates on tokens!
With non-English languages, GPT-3 can get 15–20x more expensive because of the high token count. To understand this, read this article.