mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-21 00:21:49 +00:00
test(cost): point dated snapshot tests at a date the cost map cannot carry
The azure row of test_get_model_info_falls_back_from_dated_snapshot_to_undated_entry used gpt-5.6-luna-2026-07-09, which main's cost map carries as an exact azure key, so the lookup returned the dated key and the required misc test job failed on main. All three dated snapshot tests now use a 2099-01-01 snapshot date, so they keep exercising the strip path whatever real snapshots the map gains
This commit is contained in:
parent
8c4c394ecc
commit
c735cc3db1
2 changed files with 3 additions and 3 deletions
|
|
@ -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),
|
||||
)
|
||||
|
|
|
|||
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue