Token tracking for OpenAI

Database & APIs

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

What have you tried so far?

JSON path is working and capturing values. App test is returning zero. Have exhausted ChatGPT suggestions.

Did you check FlutterFlow's Documentation for this topic?
Yes
2