How to calculate the tokens when using function call

Has anyone figured out how to count the prompt tokens using the new tools / tool_choice fields?

2 Likes