You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#170 estimates token count of function by tokenizing tools config serialized to a string. It's obviously not an exact match to the OpenAI tokenization, and it may overestimate as well as underestimate the token count, but it's still better than returning 0 completion tokens on a function call.
Use with caution. The recommended way is still using stream_options.include_usage=True that provides the precise token count coming from Azure OpenAI.
Currently we don't calculate tokens for functions and tools
The text was updated successfully, but these errors were encountered: