openai-cookbook
openai-cookbook copied to clipboard
Ho to count number of input tokens and the output tokens
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
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.
This issue was closed because it has been stalled for 10 days with no activity.