You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The number of prompt and generated tokens is important to evaluate the cost of each query. I suggest to return a class that contains the generation as well as these numbers.
The text was updated successfully, but these errors were encountered:
I suppose the goal is keeping the counts of the tokens consumed for each instance of the OpenAI class, right? Maybe keeping last and accumulated tokens, s.t. whoever is interested can inspect these values after each call.
The number of prompt and generated tokens is important to evaluate the cost of each query. I suggest to return a class that contains the generation as well as these numbers.
The text was updated successfully, but these errors were encountered: