fix(agent): enhance 413 error handling and improve conversation history management in tests

This commit is contained in:
teknium1 2026-02-27 23:04:32 -08:00
parent 2c817ce4a5
commit 19f28a633a
4 changed files with 23 additions and 5 deletions

View file

@ -2099,6 +2099,7 @@ class AIAgent:
is_payload_too_large = (
status_code == 413
or 'request entity too large' in error_msg
or 'payload too large' in error_msg
or 'error code: 413' in error_msg
)