Uh oh!
There was an error while loading. Please reload this page.
feat(scripts): sync the full models.dev fact set (pricing, description, knowledge, input limits) - #2399
Conversation
…n, knowledge, input limits)
Astro-Han
commented
Aug 8, 2026
Thanks for extending the existing metadata sync instead of adding another generation path. I found three issues around authority ordering and pricing semantics. P1: Static |
…v-sync # Conflicts: # packages/runtime/src/context-budget-policy.ts # packages/ui/src/__tests__/model-picker.test.ts
Astro-Han
commented
Aug 8, 2026
P2: Do not apply the base rate to requests covered by a higher pricing tier
This affects current mapped models. For example, models.dev lists Until the runtime pricing contract can select a tier from the request usage, the safe minimal behavior is to omit generated pricing for models with context-dependent rates. Alternatively, preserve the tier structure in 中文P2:不要把基础费率用于应按更高阶梯计价的请求
当前映射模型中已经存在实际影响。例如 models.dev 中 在 runtime 价格契约能够根据请求用量选择阶梯之前,最安全的最小方案是不为含上下文分层价格的模型生成价格。另一种方案是让 |
Uh oh!
There was an error while loading. Please reload this page.
Astro-Han
commented
Aug 8, 2026
Thanks for the thorough work — approved and merged. A few non-blocking follow-ups we noticed:
None of these affects the merged feature’s primary behavior. |
Summary
Synchronizes the models.dev model fact set into the core catalog and Runtime pricing snapshots.
Why
Issue #2329 tracks replacing the hand-maintained builtin pricing snapshot with models.dev-backed facts. Keeping the sync in one script makes pricing and model metadata reproducible while preserving explicit local exceptions for providers that need access-path-specific rates.
Verification
node --test scripts/sync-model-metadata.test.mjs— 11 passed.npm --workspace @maka/core run test— 805 passed.git diff --check— passed.The full Runtime suite was also run; unrelated existing
model-factory-tool-call-indextests fail against the current AI SDK baseline. UI and Desktop typechecks are currently blocked by the latestupstream/mainconversationKey/ AstryxChatLayoutPropsmismatch, outside this PR's files.Closes#2329