fix(models): rank a version bump above a dated snapshot - #32
Open
bsamek wants to merge 1 commit into
Open
Conversation
Release stamps like deepseek-v4-flash-0731 were folded into the version tuple, producing [4, 731] against deepseek-v4p1-flash's [4, 1]. The larger date then won, so model list hid the v4.1 model and pinned deepseek-flash-latest to the older build. Treat MMDD/YYYYMMDD segments as release dates: compare the version tuple first and use the date only as a tie-breaker. This keeps a dated snapshot ahead of its own undated base while letting v4.1 outrank v4 + 0731. Retarget deepseek-flash-latest at deepseek-v4p1-flash and add its static spec (the live catalog reports it vision-capable).
bsamek
force-pushed
the
fix/model-version-date-ranking
branch
from
September 11, 2026 14:49
300ce08 to
2172864
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
fireconnect model listfetcheddeepseek-v4p1-flashbut never showed it as the newest model, anddeepseek-flash-lateststayed pinned to the olderdeepseek-v4-flash-0731.Root cause
stripVersionSegmentsfolded release stamps into the version tuple, so:deepseek-v4p1-flash→[4, 1]deepseek-v4-flash-0731→[4, 731]731 > 1, so the dated v4 build won the "newest" comparison.newestModelsByFamilythen dropped v4.1 from INDIVIDUAL MODELS, andROUTER_SPEC_ALIASES/candidate lists kept the alias on 0731.Fix
stripVersionSegmentsnow returns a separatedatetuple for release stamps (0731,0813,20250731).compareVersionKeyscompares the version tuple first, using the date only as a tie-breaker:deepseek-v4p1-flash[4,1]beatsdeepseek-v4-flash-0731[4]+ date[731]deepseek-v4-flash-0731still beatsdeepseek-v4-flash(dated build > undated base)deepseek-v4-pro-0813still beatsdeepseek-v4-prodeepseek-flash-latestatdeepseek-v4p1-flash(alias + candidate list) and added its static spec. The live catalog reports this model vision-capable, so its capability list istext, image.Documented limitation: date stamps aren't normalized across formats, so an 8-digit
YYYYMMDDvalue always compares above a 4-digitMMDDvalue. No family mixes formats today; a test pins the behavior.Tests
deepseek-flash-latestwas text-only and labeled0731.npm test: 1820 tests, all pass except a pre-existing Azure/Foundry failure (codex on routes through the configured Foundry endpoint) that also fails on cleanmain.