mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-12 08:42:18 +00:00
fix(prometheus): use a read-only payload type in the failed model label helper
The type discipline gate counted the dict | StandardLoggingPayload annotation as a new mutable collection. Signed-off-by: Denel John <denelbjohn18@gmail.com>
This commit is contained in:
parent
d756f14b59
commit
a42a175f14
1 changed files with 1 additions and 3 deletions
|
|
@ -2602,9 +2602,7 @@ class PrometheusLogger(CustomLogger):
|
|||
)
|
||||
|
||||
@staticmethod
|
||||
def _bounded_failed_request_model_label(
|
||||
model: object, standard_logging_payload: dict | StandardLoggingPayload
|
||||
) -> object:
|
||||
def _bounded_failed_request_model_label(model: object, standard_logging_payload: StandardLoggingPayload) -> object:
|
||||
"""
|
||||
Bound the legacy ``model`` label on the failed-request metric.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue