I am making an app that talsk to chatGPT. using the Invoke Web Service action. I then used the Convert JSON to custom object action. I was able to print the text of my result using:
%AnswerCustomObject['choices'][0].text%
I need help extracting the token details which is in the usage part of the custom object.
would like to extract prompt_tokens, completion_tokens, and total_tokens as 3 different variables.
I wasn't sure of the syntax. TIA
