mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-16 09:22:22 +00:00
fix(aiand): retire deepseek-v4.1-flash on 2026-11-06
https://api.aiand.com/v1/models now gives deepseek-v4.1-flash a deprecation_date of 2026-11-05T15:00Z, which is 2026-11-06 00:00 in Japan, so its row uses 2026-11-06 instead of 2026-10-30 and aiand/* keeps listing it until then. The wildcard test now leaves a model out only once its retirement date has passed
This commit is contained in:
parent
88d794bc95
commit
629d819d23
3 changed files with 12 additions and 6 deletions
|
|
@ -72064,7 +72064,7 @@
|
|||
},
|
||||
"aiand/deepseek-ai/deepseek-v4.1-flash": {
|
||||
"cache_read_input_token_cost": 2e-08,
|
||||
"deprecation_date": "2026-10-30",
|
||||
"deprecation_date": "2026-11-06",
|
||||
"input_cost_per_token": 3e-07,
|
||||
"litellm_provider": "aiand",
|
||||
"max_input_tokens": 1048576,
|
||||
|
|
|
|||
|
|
@ -72064,7 +72064,7 @@
|
|||
},
|
||||
"aiand/deepseek-ai/deepseek-v4.1-flash": {
|
||||
"cache_read_input_token_cost": 2e-08,
|
||||
"deprecation_date": "2026-10-30",
|
||||
"deprecation_date": "2026-11-06",
|
||||
"input_cost_per_token": 3e-07,
|
||||
"litellm_provider": "aiand",
|
||||
"max_input_tokens": 1048576,
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
import datetime
|
||||
import json
|
||||
from typing import Final
|
||||
|
||||
|
|
@ -93,16 +94,21 @@ AIAND_RETIREMENT_DATES: Final = {
|
|||
"aiand/deepseek-ai/deepseek-v4-flash": "2026-10-27",
|
||||
"aiand/zai-org/glm-5.2": "2026-10-27",
|
||||
"aiand/moonshotai/kimi-k2.7-code": "2026-10-27",
|
||||
"aiand/deepseek-ai/deepseek-v4.1-flash": "2026-10-30",
|
||||
"aiand/deepseek-ai/deepseek-v4.1-flash": "2026-11-06",
|
||||
}
|
||||
AIAND_RETIRED: Final = frozenset(AIAND_RETIREMENT_DATES)
|
||||
|
||||
|
||||
def test_aiand_wildcard_lists_only_its_live_models():
|
||||
catalog: Final = _aiand_catalog()
|
||||
|
||||
assert AIAND_RETIRED < catalog
|
||||
assert frozenset(get_known_models_from_wildcard("aiand/*")) == catalog - AIAND_RETIRED
|
||||
retired: Final = frozenset(
|
||||
model
|
||||
for model, retired_on in AIAND_RETIREMENT_DATES.items()
|
||||
if datetime.date.fromisoformat(retired_on) <= datetime.date.today()
|
||||
)
|
||||
|
||||
assert frozenset(AIAND_RETIREMENT_DATES) < catalog
|
||||
assert frozenset(get_known_models_from_wildcard("aiand/*")) == catalog - retired
|
||||
|
||||
|
||||
def test_aiand_retired_models_carry_their_retirement_date():
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue