mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-14 23:21:35 +00:00
test(proxy): expect the sanitized unknown-model message in the spend-log error test
This commit is contained in:
parent
832da2950f
commit
3dafa7aac1
1 changed files with 2 additions and 1 deletions
|
|
@ -210,7 +210,8 @@ async def test_chat_completion_bad_model_with_spend_logs():
|
|||
assert "traceback" in error_info
|
||||
assert error_info["error_code"] == "400"
|
||||
assert error_info["error_class"] in ("ProxyModelNotFoundError", "BadRequestError")
|
||||
assert "non-existent-model" in error_info["error_message"]
|
||||
assert "non-existent-model" not in error_info["error_message"]
|
||||
assert "/chat/completions: Invalid model name passed in" in error_info["error_message"]
|
||||
|
||||
# Verify request details
|
||||
assert log_entry["cache_hit"] == "False"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue