-
Notifications
You must be signed in to change notification settings - Fork 824
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add validation and rename parameter in TokenCountBatchingStrategy
This commit rename the thresholdFactor parameter to reservePercentage to better reflect its purpose in the TokenCountBatchingStrategy class. It also adds validation for input parameters including maxInputTokenCount > 0 and reservePercentage between 0 and 1 for safer initialization. The change ensures proper parameter validation on TokenCountBatchingStrategy creation to prevent potential runtime errors from invalid inputs.
- Loading branch information
1 parent
83f7164
commit 0825d52
Showing
1 changed file
with
11 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters