Skip to content

Add mocked token-usage endpoints #780

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

Merged
merged 2 commits into from
Jan 27, 2025
Merged

Add mocked token-usage endpoints #780

merged 2 commits into from
Jan 27, 2025

Conversation

aponcedeleonch
Copy link
Contributor

For the moment mocked the token usage endpoints. This would be the request with most of the information

curl 'http://localhost:8989/api/v1/workspaces/default/token-usage'

It will bring the total tokens used in the workspace. Additionally it will have a breakdown of how many tokens were used by each model in the workspace

Copy link
Contributor

@peppescg peppescg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@aponcedeleonch aponcedeleonch merged commit b35e9b9 into main Jan 27, 2025
4 checks passed
@aponcedeleonch aponcedeleonch deleted the token-usage-api branch January 27, 2025 11:49
lukehinds pushed a commit that referenced this pull request Jan 31, 2025
* Add mocked token-usage endpoints

* Make conversations also use TokenUsage
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

Successfully merging this pull request may close these issues.

2 participants