Repository navigation
fix(models): preserve free-model metadata from discovery - #12763
Conversation
30701f0 to
0861e9a
Compare
67bc98a to
a7789c2
Compare
…12763-refresh-20260910
|
Clean, well-scoped fix — tests pass clean (2/2 test blocks, full scenario coverage). One thing |
Co-authored-by: diegosouzapw <8016841+diegosouzapw@users.noreply.github.com>
|
Thanks @keeltrace — merging via the release merge-train. Validated in local merge-train (merge-train-20260918-120911-suite.log) on the devbox @ train tip 8c305709478b7052fb981a75852bbf88fe3a959d with the sibling PRs of this batch: typecheck:core, file-size, complexity, cognitive-complexity, changelog-integrity green; changed-area node:test 310/311 (the single red, hard-lease inventory, reproduces on the pure release tip) + vitest green (fast parity mode — full suite ran today on the tip via the base-red and 3b trains). Merged --admin per merge-gates §4/§7. |
95d3b16
into
cheaper-inference:release/v3.8.51
…erence#12763) * fix(models): preserve live free economics in synced discovery * docs(changelog): add fragment for free-model metadata discovery fix Co-authored-by: diegosouzapw <8016841+diegosouzapw@users.noreply.github.com> --------- Co-authored-by: diegosouzapw <8016841+diegosouzapw@users.noreply.github.com>
Problem
Provider discovery can identify a model as free, but synced-model normalization drops that metadata before the provider-model UI and other existing consumers can read it.
Change
Preserve
isFree: trueon synced discovered models when the discovery payload provides intrinsic free evidence:isFree: true:freeBlank or non-zero pricing does not mark a model free.
Scope
Metadata preservation only. This PR does not change routing, candidate selection, connection selection, or provider-specific discovery behavior.
Tests
Focused coverage verifies:
:freeidsBased directly on
release/v3.8.51.