fix(proxy): forward dispatched_call_type through _failure_usage_to_lift (#47815)

This commit is contained in:
Mateo Wang 2026-10-21 09:42:05 +00:00 • committed by GitHub
parent a8113b0dd7
commit a31c5230de
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1294,6 +1294,7 @@ def _failure_usage_to_lift(
provider_billed: bool = False,
deployment_id: str | None = None,
base_model: str | None = None,
dispatched_call_type: str | None = None,
) -> tuple[object, object] | None:
current_attempt: Final = _current_failure_usage_to_lift(
model_call_details,
@ -1302,6 +1303,7 @@ def _failure_usage_to_lift(
provider_billed,
deployment_id,
base_model,
dispatched_call_type=dispatched_call_type,
)
failed_attempts: Final = _FAILED_ATTEMPTS_USAGE.validate_python(model_call_details.get("failed_attempts_usage", ()))
if not failed_attempts: