litellm/tests/unit/proxy/proxy_server
devin-ai-integration[bot] 7b432d78d2
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>
2026-10-03 06:44:52 +00:00
..
.coverage_baseline
__init__.py
_coverage_check.py
_pin_check.py
conftest.py test: repair stale and polluting tests red on scheduled main CI (#44229) 2026-10-02 21:32:17 +00:00
test_background_health.py
test_exception_handlers.py feat: improve trace ingestion and trace details (#43975) 2026-10-01 13:45:33 -07:00
test_harness_smoke.py
test_lifecycle.py refactor(repositories): daily activity repository with centralized bounded usage queries (#43398) 2026-10-01 16:02:01 -07:00
test_openapi_customization.py
test_proxy_config.py fix(search_tools): encrypt search tool litellm_params at rest (#43631) 2026-10-02 22:53:18 -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
test_routes_embeddings.py
test_routes_invitation.py
test_routes_login_sso.py
test_routes_misc.py
test_routes_model_cost_map.py
test_routes_model_info.py
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 06:44:52 +00:00
test_team_model_name_translation.py