diff --git a/litellm/llms/custom_httpx/llm_http_handler.py b/litellm/llms/custom_httpx/llm_http_handler.py index 2a40d578af4..a5e36ef50d7 100644 --- a/litellm/llms/custom_httpx/llm_http_handler.py +++ b/litellm/llms/custom_httpx/llm_http_handler.py @@ -385,7 +385,8 @@ def _collect_ws_project_quota_callbacks() -> tuple[ProjectQuotaCallback, ...]: def _with_reference_pixels(response: ImageResponse, reference_pixels: int | None) -> ImageResponse: if reference_pixels is not None: - response._reference_pixels = reference_pixels # mutable-ok: stamp the measured reference pixels + # mutable-ok: handler stamps this billing field + response._reference_pixels = reference_pixels # pyright: ignore[reportPrivateUsage] # billing stamp return response