mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-11 22:51:28 +00:00
Update tests/test_litellm/test_router_silent_experiment.py
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
This commit is contained in:
parent
01ed0e0ebf
commit
dc6f68b431
1 changed files with 3 additions and 0 deletions
|
|
@ -81,6 +81,9 @@ def test_get_silent_experiment_kwargs():
|
|||
assert "is_silent_experiment" not in kwargs["metadata"]
|
||||
assert kwargs["metadata"]["litellm_parent_otel_span"] is mock_span
|
||||
assert kwargs["metadata"]["user_api_key_auth"] is mock_auth
|
||||
# Shallow copy must preserve user_api_key_auth so the silent experiment
|
||||
# can attribute billing / spend logs to the correct key/team.
|
||||
assert result["metadata"]["user_api_key_auth"] is mock_auth
|
||||
|
||||
|
||||
def test_silent_experiment_completion_direct():
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue