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]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
test(store_model_in_db): expect the placeholder model on rejected unknown-model spend logs
mateo-berridbcb10c57d65
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.pyindex d3f38f93bf3..5de7c427d19 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@@ -193,7 +193,7 @@ async def test_chat_completion_bad_model_with_spend_logs():# Verify the structure of the log entryassert 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.0assert log_entry["total_tokens"] == 0