Attempting to capture values of
$.usage.total_tokens
This is because there is a charge for input and output tokens and so it needs to be tracked for each user of a OpenAI Assistant API chat function.
Everything roses in the test and response and returning the correct values. But returning zeros in the app test debug panel. Nothing found on the forum.
Anyone succeeded in tracking token usage values and kind enough to share please? I've hit a dead end now.
Thanks