fix(agent): enhance 413 error handling and improve conversation history management in tests
This commit is contained in:
parent
2c817ce4a5
commit
19f28a633a
4 changed files with 23 additions and 5 deletions
|
|
@ -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
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue