mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-04 02:31:27 +00:00
(fix:exception_mapping_utils.py) fix sglang rate limit error issue (#11575)
This commit is contained in:
parent
74bf90164c
commit
01dd518201
1 changed files with 1 additions and 0 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue