mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-21 00:21:49 +00:00
Merge pull request #41971 from BerriAI/litellm_fix_dated_snapshot_test_exact_key
test(cost): point dated snapshot tests at a date the cost map cannot carry
This commit is contained in:
commit
638e085dba
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