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(cost): point dated snapshot tests at a date the cost map cannot carry

mateo-berric735cc3db14e
diff --git a/tests/test_litellm/test_cost_calculator.py b/tests/test_litellm/test_cost_calculator.py
index 50eec369c07..aef17f3d5d0 100644
--- a/tests/test_litellm/test_cost_calculator.py
+++ b/tests/test_litellm/test_cost_calculator.py
@@ -113,7 +113,7 @@ def test_completion_cost_uses_response_model_for_dynamic_routing(_local_model_co
def test_completion_cost_strips_dated_azure_snapshot_model(_local_model_cost_map: None) -> None:
dated_response = ModelResponse(
- model="gpt-5.6-luna-2026-07-09",
+ model="gpt-5.6-luna-2099-01-01",
choices=[Choices(index=0, message=Message(role="assistant", content="hi"), finish_reason="stop")],
usage=Usage(prompt_tokens=100, completion_tokens=50, total_tokens=150),
)
diff --git a/tests/test_litellm/test_utils.py b/tests/test_litellm/test_utils.py
index 71af3cf76a6..d2eb40bedca 100644
--- a/tests/test_litellm/test_utils.py
+++ b/tests/test_litellm/test_utils.py
@@ -186,8 +186,8 @@ def test_get_model_info_strips_openai_finetune_ids_without_a_custom_suffix(local
@pytest.mark.parametrize(
("model", "custom_llm_provider", "expected_key"),
[
- ("gpt-5.6-luna-2026-07-09", "openai", "gpt-5.6-luna"),
- ("gpt-5.6-luna-2026-07-09", "azure", "azure/gpt-5.6-luna"),
+ ("gpt-5.6-luna-2099-01-01", "openai", "gpt-5.6-luna"),
+ ("gpt-5.6-luna-2099-01-01", "azure", "azure/gpt-5.6-luna"),
],
)
def test_get_model_info_falls_back_from_dated_snapshot_to_undated_entry(