File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
tests/unit/models/responses Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -2217,7 +2217,7 @@ def __init__(
22172217 super ().__init__ (
22182218 response = response ,
22192219 cause = cause ,
2220- status_code = status .HTTP_413_REQUEST_ENTITY_TOO_LARGE ,
2220+ status_code = status .HTTP_413_CONTENT_TOO_LARGE ,
22212221 )
22222222
22232223
Original file line number Diff line number Diff line change @@ -687,7 +687,7 @@ def test_constructor_with_default_response(self) -> None:
687687 cause = "The prompt exceeds the maximum allowed length."
688688 )
689689 assert isinstance (response , AbstractErrorResponse )
690- assert response .status_code == status .HTTP_413_REQUEST_ENTITY_TOO_LARGE
690+ assert response .status_code == status .HTTP_413_CONTENT_TOO_LARGE
691691 assert isinstance (response .detail , DetailModel )
692692 assert response .detail .response == "Prompt is too long"
693693 assert response .detail .cause == "The prompt exceeds the maximum allowed length."
You can’t perform that action at this time.
0 commit comments