16 views
-/https://github.com/berriai/litellm/issues/27942
GitHub ยท issue

#27942 Azure Model Router: /spend/logs stores router model instead of actual selected model

  • State: open
  • Author: @ibeex
  • Labels: bug, llm translation

### Check for existing issues

- [x] I have searched the existing issues and checked that my issue is not a duplicate.

### What happened?

When using azure_ai/model_router/..., LiteLLM correctly returns the actual selected model in the API response, but /spend/logs stores the router deployment model instead.

Example:

- actual response model: - azure_ai/gpt-5.4-mini-2026-03-17 - spend log stored model: - azure_ai/model_router/model-router

This makes spend logs inconsistent with the user-facing response and hides which Azure model was actually selected by Azure Model Router.

โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€

LiteLLM Version

Observed on:

- ghcr.io/berriai/litellm-database:main-v1.83.14-stable

Also traced in source history in local clone.

โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€

Expected Behavior

For Azure Model Router requests, /spend/logs should store the same effective model that LiteLLM preserves in the response / standard logging flow, e.g.:

```json { "model": "azure_ai/gpt-5.4-mini-2026-03-17" } ```

model_map_information can still point to:

โ€ฆ

GitHub resolver

Import GitHub neighbors on demand. Results are saved as system ingests.

Refresh page
vote history (2 events)
#0 of 0 ยท 31d18h56m48s ago โ€” entered ยท #import:https:::github.com:berriai:litellm post #2132
30816 spans streaming lifecycle, SSE contract design, client compatibility, and end-to-end cost propagation/testing, creating broader integration risk. 27942 is comparatively localized to model identity propagation in an existing spend-logging path.
#0 of 0 ยท 31d17h53m59s ago โ€” current ยท #import:https:::github.com:berriai:litellm post #3181
The right-hand task is harder because it requires tracing model identity through Azure router selection and the spend-logging pipeline, preserving consistency across response metadata, callbacks, and persistence, with broader regression-testing risk. The left-hand task is a narrowly scoped retry-parameter propagation fix with an established pattern to follow.
discussed in #import:https:::github.com:berriai:litellm

ranked child groups

no voted pairs yet in this scope

cli
src
spread
search