Hi, there fellow bubblers, am actually new to the community and bubble has a whole, pls I need help it settings up a system, like open ai token section, (am using open ai gtp 3 API by the way)
whereby users, when imputing a prompt, the result of that prompt is deducted from their remaining tokens/credits on their dashboard, and the can purchase credits wen there are out of it, I want the bubble logic behind this
You can limit your users with words (20,000). You can then deduct the number of words from the result (20,000 -200). You can also count token
A helpful rule of thumb is that one token generally corresponds to ~4 characters of text for common English text. This translates to roughly ¾ of a word (so 100 tokens ~= 75 words)