test(proxy): expect the sanitized unknown-model message in the spend-log error test

This commit is contained in:
mateo-berri 2026-09-11 19:18:10 -07:00
parent 832da2950f
commit 3dafa7aac1

View file

@ -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"