sgl-project/sglang
View on GitHub[Feature] Automatically truncate when the maximum tokens are exceeded instead of throwing an error
Open
#3,642 opened on Feb 17, 2025
good first issue
Repository metrics
- Stars
- (28,442 stars)
- PR merge metrics
- (Avg merge 2d 1h) (1,000 merged PRs in 30d)
Description
Checklist
- 1. If the issue you raised is not a feature but a question, please raise a discussion at https://github.com/sgl-project/sglang/discussions/new/choose Otherwise, it will be closed.
- 2. Please use English, otherwise it will be closed.
Motivation
Automatic truncation avoids additional exception handling by the user, resulting in a better user experience
Related resources
No response