sgl-project/sglang

[Feature] Automatically truncate when the maximum tokens are exceeded instead of throwing an error

Open

#3,642 opened on Feb 17, 2025

View on GitHub
 (7 comments) (0 reactions) (1 assignee)Python (6,216 forks)auto 404
good first issue

Repository metrics

Stars
 (28,442 stars)
PR merge metrics
 (Avg merge 2d 1h) (1,000 merged PRs in 30d)

Description

Checklist

Motivation

Automatic truncation avoids additional exception handling by the user, resulting in a better user experience

Related resources

No response

Contributor guide