litellm/tests/test_litellm/proxy/rerank_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 fix(rerank): emit latency and cost headers on /rerank (#35419) 2026-08-25 15:54:25 -07:00
test_endpoints.py fix(proxy): preserve ProxyException.code in rerank and image_generation 2026-09-23 18:52:51 +09:00