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

[Enhancement]: Estimate token usage cost #417

Open
1 task done
cliffordh opened this issue Jan 17, 2024 · 4 comments
Open
1 task done

[Enhancement]: Estimate token usage cost #417

cliffordh opened this issue Jan 17, 2024 · 4 comments
Assignees
Labels
enhancement New feature or request low priority

Comments

@cliffordh
Copy link

Before Requesting

  • I have searched the existing issues, and there is no existing issue for my feature request

What feature do you want?

I use Niek/chatgpt-web that has a neat feature to estimate cost per request and total cost.

https://github.com/search?q=repo%3ANiek%2Fchatgpt-web+tokens&type=code

Would love to see something similar in CPX.

@cliffordh cliffordh added the enhancement New feature or request label Jan 17, 2024
@intitni
Copy link
Owner

intitni commented Jan 17, 2024

The token cost is already computed to avoid exceeding the context window in this app. Do you mean you want to see the cost in UI?

@intitni
Copy link
Owner

intitni commented Jan 17, 2024

Or do you mean the cost of money?

@cliffordh
Copy link
Author

Yes, cost of $$. Needs to be localized, but something like this:

image

@intitni
Copy link
Owner

intitni commented Jan 17, 2024

I see. I will give it a low priority because the chat service part may need some rewriting to support custom chat services from extensions. I will think about it at that time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request low priority
Projects
None yet
Development

No branches or pull requests

2 participants