Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/models/responses.py
Original file line number Diff line number Diff line change
Expand Up @@ -2214,7 +2214,7 @@ def __init__(
super().__init__(
response=response,
cause=cause,
status_code=status.HTTP_413_REQUEST_ENTITY_TOO_LARGE,
status_code=status.HTTP_413_CONTENT_TOO_LARGE,
)


Expand Down
2 changes: 1 addition & 1 deletion tests/unit/models/responses/test_error_responses.py
Original file line number Diff line number Diff line change
Expand Up @@ -687,7 +687,7 @@ def test_constructor_with_default_response(self) -> None:
cause="The prompt exceeds the maximum allowed length."
)
assert isinstance(response, AbstractErrorResponse)
assert response.status_code == status.HTTP_413_REQUEST_ENTITY_TOO_LARGE
assert response.status_code == status.HTTP_413_CONTENT_TOO_LARGE
assert isinstance(response.detail, DetailModel)
assert response.detail.response == "Prompt is too long"
assert response.detail.cause == "The prompt exceeds the maximum allowed length."
Expand Down
Loading