litellm/tests/test_litellm/proxy/proxy_server
devin-ai-integration[bot] dabf756927
fix(proxy): stamp the client alias on a copy of each streamed chunk so pricing sees the deployment model (#44341)
* fix(proxy): stamp the client alias on a copy of each streamed chunk so pricing sees the deployment model

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>

* test(spend): streamed alias matching a capability rule bills the deployment price

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>

* test(spend): assert every streamed chunk carries the client alias

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>

* fix(logging): log the client alias on the priced streamed response, the same as non-streamed

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>

---------

Co-authored-by: kerry <kerry@berri.ai>
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
(cherry picked from commit 7b432d78d2)
2026-10-03 11:20:16 -07:00
..
.coverage_baseline
__init__.py
_coverage_check.py
_pin_check.py
conftest.py refactor(proxy): move login throttle sentinels into constants 2026-09-17 16:42:04 +00:00
test_background_health.py
test_exception_handlers.py
test_harness_smoke.py
test_lifecycle.py revert(usage): remove the top-N aggregated key cap and daily global spend rollup code from rc/1.103.0 (#43326) 2026-09-26 11:14:53 -07:00
test_openapi_customization.py
test_proxy_config.py fix(proxy): restore pre-config-wins handling of pass-through endpoints (#43962) 2026-09-30 22:23:33 -07:00
test_routes_anthropic_beta.py
test_routes_assistants.py
test_routes_audio.py
test_routes_chat_completions.py
test_routes_completions.py
test_routes_config.py fix(proxy): persist only the router settings keys the request set 2026-09-18 14:01:05 -07:00
test_routes_embeddings.py
test_routes_invitation.py
test_routes_login_sso.py feat(proxy): derive the per-username sign-in allowance from the address limit 2026-09-18 09:25:34 +00:00
test_routes_misc.py
test_routes_model_cost_map.py
test_routes_model_info.py chore: merge main into litellm_lit8064_unpin_derived_pricing 2026-09-18 16:11:37 -07:00
test_routes_model_metrics.py
test_routes_models.py
test_routes_moderations.py
test_routes_onboarding.py
test_routes_queue.py
test_routes_threads.py
test_routes_utils.py
test_spend_counters.py
test_streaming_helpers.py fix(proxy): stamp the client alias on a copy of each streamed chunk so pricing sees the deployment model (#44341) 2026-10-03 11:20:16 -07:00
test_team_model_name_translation.py