Assistants Beta API, any way of getting a thread size in tokens?


Im looking for any way to check the current length in tokens of a specified thread identifier.

I nocited that the price of every request to the Assistants API running on a thread depends on how many messages the conversation on the thread has, the longer the stored messages in the thread are, the more expensive the API calls are.

How could we check that? Thank you.

1 Like