You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I make an openai request, I can't get the token usage from the callbackHandler if I request it as a stream.
For this reason, openai added a new option, stream_options option.
openAI added that option to the openai 3 weeks ago, is it possible to update it?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Checked other resources
Commit to Help
Example Code
Description
When I make an openai request, I can't get the token usage from the callbackHandler if I request it as a stream.
For this reason, openai added a new option,
stream_options
option.openAI added that option to the
openai
3 weeks ago, is it possible to update it?https://platform.openai.com/docs/api-reference/chat/create#chat-create-stream_options
https://github.com/openai/openai-node/releases/tag/v4.42.0
System Info
nothing
Beta Was this translation helpful? Give feedback.
All reactions