Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to know the input token count in the context including the tools for each call? #55

Open
kondvit opened this issue Oct 25, 2024 · 1 comment

Comments

@kondvit
Copy link

kondvit commented Oct 25, 2024

Is there a way to know the exact/rough token count including the tools?

@kubephil
Copy link

Yes there is each response.done has the info. https://platform.openai.com/docs/api-reference/realtime-server-events/response/done.
The event can be of type message or function_call. In the usage object you find the detailed information

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants