BuildShipBBuildShip
Powered by
AdaA
BuildShip•16mo ago•
3 replies
Ada

How to get the openai total token usage from the same node that's streaming the message?

I'm using the OpenAI Assistant node and have modified the code a bit to do message streaming. In the return node, I've set it to return streamed messages.
I was wondering if there's a way to get the total token usage from each streamed message. And if I can have two return nodes, one to output the streaming messages, and the other for token usage?
BuildShip banner
BuildShipJoin
Join founders, builders, devs using Low-code / No-code to create backend, APIs, scheduled Jobs, automation, AI workflows
7,971Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

Problem Streaming OpenAI Assistant
ArtusAArtus / ❓・buildship-help
2y ago
API call to have openAI with streaming
jiefu95Jjiefu95 / ❓・buildship-help
2y ago
Stream OpenAI Assistant Node
01iver001iver / ❓・buildship-help
3y ago
OpenAI Assistant node with Functions
IanFPIIanFP / ❓・buildship-help
2y ago