mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-18 09:45:23 +00:00
test(proxy): pick a deterministic shipped model key in telemetry label test
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
parent
52e24e84e9
commit
489f3e9a50
1 changed files with 3 additions and 1 deletions
|
|
@ -187,7 +187,9 @@ def test_model_registered_at_runtime_still_labels_other(monkeypatch: pytest.Monk
|
|||
|
||||
|
||||
def test_shipped_provider_prefixed_model_labels_as_itself() -> None:
|
||||
shipped: Final = next(key for key in ut._PUBLIC_MODELS if "/" in key)
|
||||
shipped: Final = min(
|
||||
key for key in ut._PUBLIC_MODELS if "/" in key and key.partition("/")[2] not in ut._PUBLIC_MODELS
|
||||
)
|
||||
provider, _, model = shipped.partition("/")
|
||||
assert ut._public_model_label(model, provider) == shipped
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue