Skip to content

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

test_chat_completion_bad_model_with_spend_logs

Ishaan Jaffd05092bb3dbd
diff --git a/tests/store_model_in_db_tests/test_openai_error_handling.py b/tests/store_model_in_db_tests/test_openai_error_handling.py
index 808a3618b1b..554ddf49cce 100644
--- a/tests/store_model_in_db_tests/test_openai_error_handling.py
+++ b/tests/store_model_in_db_tests/test_openai_error_handling.py
@@ -205,7 +205,4 @@ async def test_chat_completion_bad_model_with_spend_logs():
# Verify request details
assert log_entry["cache_hit"] == "False"
- assert log_entry["messages"]["model"] == "non-existent-model"
- assert log_entry["messages"]["messages"][0]["role"] == "user"
- assert log_entry["messages"]["messages"][0]["content"] == "Hello!"
assert log_entry["response"] == {}