When I ask on the “Playground” of “Assistant”, I see the number of tokens for each request.
How can I log the parameter “This number of tokens” in the code?
Example:
Question:
“Hi”
Answer:
“Hello! How can I assist you today?”
Logs: 1877 tokens
When I ask on the “Playground” of “Assistant”, I see the number of tokens for each request.
How can I log the parameter “This number of tokens” in the code?
Example:
Question:
“Hi”
Answer:
“Hello! How can I assist you today?”
Logs: 1877 tokens