litellm/tests/test_litellm/proxy/image_endpoints
AtsutoNakayama 3d199547ea fix(proxy): preserve ProxyException.code in rerank and image_generation
Both handlers only special-cased HTTPException in their except block, so a
bare ProxyException (e.g. the ProxyMissingRequiredParamError raised by the
previous commit's guard) fell into the generic else branch. That branch reads
getattr(e, "status_code", 500), but ProxyException carries the status on
.code, not .status_code, so it always defaulted to 500. Re-raise ProxyException
instances unchanged, matching the pattern already used in
common_request_processing.py's _handle_llm_api_exception.
2026-09-23 18:52:51 +09:00
..
__init__.py style: run black formatter on files from main merge 2026-04-17 13:02:59 -07:00
test_azure_routes.py test: drop the cwd-relative sys.path.insert calls from the test suite (#37802) 2026-08-22 09:25:58 -07:00
test_endpoints.py fix(proxy): preserve ProxyException.code in rerank and image_generation 2026-09-23 18:52:51 +09:00