Closed ZeonLap closed 1 week ago
Thanks for bringing this up and for your feedback!
Our current implementation logic is designed to log the token consumption in real-time with a write and read operation per task, accumulating the data until the final calculation is completed. We’ll review this part for any possible improvements.
Thanks for the great work!
I've noticed an issue in the function
save_token_count_to_file
where the token cost calculation logic seems to have an error. Specifically, thetotal_input_token_cost
andtotal_output_token_cost
are repeatedly accumulated.The problematic part of the code is here:
Suggested Fix:
Thanks for your work on this project!