-
Notifications
You must be signed in to change notification settings - Fork 846
fix: handle network errors gracefully in token count estimation #437
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
base: main
Are you sure you want to change the base?
Conversation
LGTM but we needs to add log when it fails. |
@ix-56h done! I used print because I think that's how logs are managed on the CLI, but lmk if I need to import some other logger. |
…log.md markdownlint errors
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you revert changes made to changelog? Otherwise lgtm yeah
I've edited the changelog because it markdownlint report an error. |
@NicolasIRAGNE done. |
danke, needs a quick rebase and I think we good to go |
When downloading tiktoken models fails due to network issues (SSL errors, connection problems), skip token count estimation silently instead of crashing.
This solves a very specific problem I have with an enterprise environment.