mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-12 23:01:41 +00:00
Add null+null fallback test for ServiceName
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
66df7662b2
commit
b9a5e1306a
1 changed files with 7 additions and 0 deletions
|
|
@ -58,6 +58,13 @@ def test_service_name_defaults_to_unknown_when_both_blank():
|
|||
assert result["ServiceName"][0] == "unknown"
|
||||
|
||||
|
||||
def test_service_name_defaults_to_unknown_when_both_null():
|
||||
row = _make_row(custom_llm_provider=None, model=None)
|
||||
frame = pl.DataFrame([row])
|
||||
result = FocusTransformer().transform(frame)
|
||||
assert result["ServiceName"][0] == "unknown"
|
||||
|
||||
|
||||
def test_service_category_uses_model_group_when_present():
|
||||
row = _make_row(model_group="sonnet-group")
|
||||
frame = pl.DataFrame([row])
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue