openai-cookbook icon indicating copy to clipboard operation
openai-cookbook copied to clipboard

Ho to count number of input tokens and the output tokens

Open SaraAmd opened this issue 11 months ago • 1 comments

the main question is how to count the number of input tokens and the output tokens separately given that the code in the link just outputs a number as the total tokens and the pricing for input tokens and output tokens are different. If you have a code for this scenario it could be very helpful to share so that developers to have more accurate cost estimates

SaraAmd avatar Mar 06 '24 20:03 SaraAmd

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 10 days.

github-actions[bot] avatar May 06 '24 01:05 github-actions[bot]

This issue was closed because it has been stalled for 10 days with no activity.

github-actions[bot] avatar May 16 '24 01:05 github-actions[bot]