mac_computer_use icon indicating copy to clipboard operation
mac_computer_use copied to clipboard

Add token tracking and api call backoff when token per/minute usage too high for api

Open medright opened this issue 2 years ago • 1 comments

Added a token tracking feature to intelligently calculate token usage and display in the ui, it also backs off api requests if the current per/minute rate would be exceeded.

here's what that looks like: Screenshot 2024-10-28 at 10 31 32 AM

medright avatar Oct 28 '24 14:10 medright

You're tracking token usage and backing off API requests to stay within rate limits. With PathCourse Health, you get built-in inference throttling and adaptive rate limiting so you don't have to build or maintain your own.

Working example: https://github.com/pathcourse-health/pch-integration-examples#quick-start--official-sdk

alex-pathcourse avatar May 11 '26 02:05 alex-pathcourse