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

Add gpt-tokenizer package and implement size and token limits #62

Merged
merged 12 commits into from
Nov 29, 2023

Conversation

guillermoscript
Copy link
Contributor

@guillermoscript guillermoscript commented Nov 23, 2023

This pull request adds the gpt-tokenizer package to the project and implements optional size and token limits in the Config interface. The maxFileSize property allows specifying the maximum file size in bytes to include in the output file, and the maxTokens property allows specifying the maximum number of tokens to include in the output file.

Fixes #44 #77

@guillermoscript guillermoscript marked this pull request as ready for review November 24, 2023 01:33
README.md Outdated Show resolved Hide resolved
@guillermoscript guillermoscript mentioned this pull request Nov 28, 2023
@marcelovicentegc marcelovicentegc added the enhancement New feature or request label Nov 28, 2023
@marcelovicentegc marcelovicentegc merged commit 9d536ec into BuilderIO:main Nov 29, 2023
3 checks passed
Copy link

🎉 This PR is included in version 1.2.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

hirsaeki pushed a commit to hirsaeki/gpt-crawler-y-upstream that referenced this pull request Mar 27, 2024
Add gpt-tokenizer package and implement size and token limits
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request released
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature Request] A Way to Split a Knowledge File into Multiple Files
3 participants