Ada
BBuildShip
•Created by Ada on 12/6/2024 in #❓・buildship-help
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?
4 replies
BBuildShip
•Created by Ada on 6/3/2024 in #❓・buildship-help
How do I image upload capabilities on OpenAI assistant API on Buildship?
I followed this documentation to set up openai assistant node https://docs.buildship.com/ai-assistant/openai-assistant. It has thread ID and prompt in the body, but how do I add image upload to my assistant?
42 replies