litellm/tests/enterprise/litellm_enterprise
yucheng-berri ec4e0146c7
feat(prometheus): add requested_model label to spend and requests metrics (#31410)
litellm_spend_metric_total and litellm_requests_metric_total previously
exposed only the resolved backend model_id and friendly model name, so
operators could not group spend or request counts by the model alias the
caller actually asked for when a router fronts multiple deployments
behind one name.

This adds the existing UserAPIKeyLabelNames.REQUESTED_MODEL to both
labelname lists; the value is already populated upstream from
standard_logging_payload["model_group"] and flows through the shared
_increment_top_level_request_and_spend_metrics call site. The sibling
token metrics (input/output/total) already carry the label, so this
also restores cross-metric consistency.

Resolves LIT-3796
2026-06-26 15:26:55 -07:00
..
enterprise_callbacks feat(prometheus): add requested_model label to spend and requests metrics (#31410) 2026-06-26 15:26:55 -07:00
integrations chore(ci): modernize model references in tests and configs (#27856) 2026-05-15 15:44:28 -07:00
proxy fix(bedrock_guardrails): select latest user message by original role in apply_guardrail (#30482) 2026-06-26 20:58:23 +05:30