mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 03:41:22 +00:00
fix: prevent false positive context overflow detection in conversation text (#2078)
This commit is contained in:
committed by
GitHub
parent
71b4be8799
commit
c984e6d8df
@@ -24,7 +24,7 @@ export function isContextOverflowError(errorMessage?: string): boolean {
|
||||
lower.includes("prompt is too long") ||
|
||||
lower.includes("exceeds model context window") ||
|
||||
(hasRequestSizeExceeds && hasContextWindow) ||
|
||||
lower.includes("context overflow") ||
|
||||
lower.includes("context overflow:") ||
|
||||
(lower.includes("413") && lower.includes("too large"))
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user