(fix:exception_mapping_utils.py) fix sglang rate limit error issue (#11575)

This commit is contained in:
dhs-shine 2025-06-11 05:06:57 +09:00 • committed by GitHub
parent 74bf90164c
commit 01dd518201
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -309,6 +309,7 @@ def exception_type( # type: ignore # noqa: PLR0915
or "string too long. Expected a string with maximum length"
in error_str
or "model's maximum context limit" in error_str
or "is longer than the model's context length" in error_str
):
exception_mapping_worked = True
raise ContextWindowExceededError(