mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-12 23:01:41 +00:00
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:
parent
3e356366ce
commit
dbcb10c57d
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue