Is it possible to add a functionality to this library that counts tokens prior to sending a query to ChatGPT? It would be beneficial to have such a feature, as it could allow the correct model - either gpt-3.5-turbo or gpt-3.5-turbo-16k - to be set before submitting the request. This can be achieved using the JTokkit library. An example of this implementation can be found here.
Is it possible to add a functionality to this library that counts tokens prior to sending a query to ChatGPT? It would be beneficial to have such a feature, as it could allow the correct model - either gpt-3.5-turbo or gpt-3.5-turbo-16k - to be set before submitting the request. This can be achieved using the JTokkit library. An example of this implementation can be found here.