openai-cookbook
openai-cookbook copied to clipboard
[SUPPORT]How to count tokens when I use gpt-4o
When I use a Chinese prompt to call GPT-4, the actual number of tokens used by the model is less than that of GPT-4 Turbo, which is expected. But how can I calculate the actual number of tokens consumed when calling GPT-4?