openai-cookbook icon indicating copy to clipboard operation
openai-cookbook copied to clipboard

[SUPPORT]How to count tokens when I use gpt-4o

Open kusuri-h opened this issue 9 months ago • 2 comments

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?

kusuri-h avatar May 23 '24 03:05 kusuri-h