Usage (token count) values #804
Unanswered
pirouzkhakzad
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi There,
Are the token usage values included in the fabric response?
Context: I am looking to be able to calculate the cost of each call.
Hoping for something like this;
const { prompt_tokens, completion_tokens } = result;
console.log('Prompt Tokens:', prompt_tokens);
console.log('Completion Tokens:', completion_tokens);
Beta Was this translation helpful? Give feedback.
All reactions