Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting access to usage tokens #369

Open
eric-gardyn opened this issue Mar 15, 2024 · 1 comment
Open

Getting access to usage tokens #369

eric-gardyn opened this issue Mar 15, 2024 · 1 comment

Comments

@eric-gardyn
Copy link
Contributor

We might implement a limit to the number of calls being made (based on user account).
Also, we would like to measure/track the usage of LLM calls.
For that, I would like to get the usage response (number of tokens used by LLM) from the LLM call, accessible in the API response, or possibly stored in the /conversations collection.

@mongodben
Copy link
Collaborator

hi Eric,

Good idea. I think this is something worth including natively in the framework b/c i could imagine the use case is fairly generic + many if not most LLM APIs include token usage info in the response so it'd be a low-cost thing to add.

However, just FYI, i don't think we're going to be able to get to this in the immediate future given some other features we're working on.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants