Skip to content

Commit aa30853

Browse files
Extend context truncation cases: broaden vLLM error detection (#759)
Co-authored-by: openhands <[email protected]>
1 parent 593b870 commit aa30853

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

openhands/sdk/llm/llm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1159,7 +1159,7 @@ def is_context_window_exceeded_exception(exception: Exception) -> bool:
11591159
"contextwindowexceedederror",
11601160
"prompt is too long",
11611161
"input length and `max_tokens` exceed context limit",
1162-
"please reduce the length of either one",
1162+
"please reduce the length of",
11631163
"the request exceeds the available context size",
11641164
"context length exceeded",
11651165
]

0 commit comments

Comments
 (0)