Skip to content

Add token counting to rate limit #6

Description

@ribenamaplesyrup

OpenAI also sets limits on the number of tokens that can be passed to the API in a set period. Currently we're using asynciolimiter to limit requests by number of calls. Expanding this functionality to include token count would also be useful. Changes should be implemented in this notebook: https://github.com/Autonomy-Data-Unit/adulib/blob/main/nbs/api/llm.ipynb

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions