Skip to content

How to obtain the number of tokens for Prompt and Completion in streaming mode? #209

Answered by waylaidwanderer
Henry910 asked this question in Help
Discussion options

You must be logged in to vote

OpenAI doesn't provide that information in streaming mode. You have to keep track of it yourself some other way.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Henry910
Comment options

Answer selected by waylaidwanderer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants