To count thread's tokens

Is it possible to count the tokens used in a threads with openai assistant ai?

OpenAI probably returns the tokens used in the API call. Or, for an approximation, Do a search for Messages:each item’s content:split by ( ):count * 1.33

1 Like

If I’ve understood correctly, 1 token is 1.33 word?

750 words is about 1000 tokens, 1 word is about 1.33 tokens (well, it’s obviously not a decimal token but you know what I mean)

I know how to count the characters, but not the words

I just told you how to count the words.