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

Verbose option #5

Open
faroukfaiz10 opened this issue May 19, 2023 · 0 comments
Open

Verbose option #5

faroukfaiz10 opened this issue May 19, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@faroukfaiz10
Copy link

faroukfaiz10 commented May 19, 2023

What

The truncating text feature could make use of a --verbose option to display if text has been truncated (has exceeded the truncation limit), and maybe how many tokens are left.

Why

It can be useful to know if the text has effectively been truncated, as a warning that not all text has passed through, and maybe another pass is needed for the rest of the text.

I can see people using ttok as safeguard before all their LLM API calls to avoid hitting the API tokens limits. When that limit is high and not expected to be hit, having a warning when it does will come in handy.

Notes

The logged warning should not be part of the stdout of ttok which is expected to be piped. Maybe stderr would fit more here.

@simonw simonw added enhancement New feature or request and removed enhancement New feature or request labels May 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants