test(store_model_in_db): expect the placeholder model on rejected unknown-model spend logs

The e2e suite asserted the pre-fix behavior (the raw client model string on the spend-log row). The fix in fe6f615c7a replaces it with unknown-model, so the assertion follows.
This commit is contained in:
mateo-berri 2026-09-10 14:42:39 -07:00
parent 3e356366ce
commit dbcb10c57d

View file

@ -193,7 +193,7 @@ async def test_chat_completion_bad_model_with_spend_logs():
# Verify the structure of the log entry
assert log_entry["request_id"] == litellm_call_id
assert log_entry["model"] == "non-existent-model"
assert log_entry["model"] == "unknown-model"
assert log_entry["model_group"] in ("", "non-existent-model")
assert log_entry["spend"] == 0.0
assert log_entry["total_tokens"] == 0