Files
spring-ai/spring-ai-core
1993heqiang 0825d52224 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.
2024-11-06 17:54:31 -05:00
..