13 Commits
Author SHA1 Message Date
mz 82ce30ede2 fix(models): take completion limits from the model author
The generator merged every numeric limit with Math.max across all source
records, and ran that merge twice: once per provider/model and again when
duplicate provider records collapse into one canonical model. Resellers
routinely republish their context window as the completion limit, so one
outlier won the maximum: anthropic/claude-opus-5 and claude-sonnet-5 shipped
outputTokens 1000000 (LiteLLM deepinfra/anthropic records with
max_output_tokens 1000000), openai/gpt-6-astra 1050000 (models.dev
llmgateway limit.output) and z-ai/glm-5.3 / glm-5.3-flash 1048576. The router
forwards Math.max(maxTokens, outputTokens) to clients as the model's output
limit (packages/core/src/gateway/model-catalog.ts modelCatalogMaxOutputTokens),
so clients ask for more than the model accepts.

Completion limits now come from the model author. When the owning provider
(first-party aliases such as zai and zhipuai resolve to z-ai) publishes a
positive maxTokens or outputTokens, each of the two keys is the maximum over
the author's own records, and a key the author does not publish is omitted
rather than filled in from a reseller. Otherwise - the entry has no record
from its author, or the author publishes no completion limit - both keys keep
the previous maximum over every record. Context tokens and every other limit
are untouched, as is supports1MContext.

Regenerating from today's upstream sources gives 128000 / 128000 / 128000 /
131072 / 131072 (the client-visible max of maxTokens and outputTokens) for the
five reported ids, lowers 128 completion limits, raises none, leaves every
other limit and capability flag unchanged and never changes a model whose new
value comes from a provider other than its author. packages/core/models.json
is produced by the release workflow and `npm run models:build`, so it is not
part of this change.
2026-10-29 20:57:39 +03:00
musistudio 3b0aebf370 Release v3.1.3 with refreshed CDN model catalog 2026-10-09 19:37:21 +08:00
musistudio 0f8af313ba feat: update bundled model catalog from R2 CDN 2026-10-09 18:11:41 +08:00
musistudio 4afd350eef Implement comprehensive application updates 2026-09-02 18:37:11 +08:00
musistudio ccd00632ac Update project files 2026-08-22 16:12:46 +08:00
musi 6971be8e87 Unify config storage and gateway bootstrap 2026-07-27 16:51:03 +08:00
musistudio 6c1a90889b Refactor router implementation and configuration 2026-07-20 20:21:18 +08:00
musistudio 555b31477d Refactor router internals and update related tests 2026-07-15 20:24:04 +08:00
musistudio 528a8e0efa Refactor routing and provider integration 2026-07-05 19:57:39 +08:00
musistudio e558a7c4ad Add catalog-backed Claude Code model metadata 2026-06-20 16:17:09 +08:00
musistudio ac1400690c refactoring using Monorepo 2025-10-05 19:33:15 +08:00
musistudio 0c5a1fd58c support to lib 2025-10-02 21:46:44 +08:00
musistudioandClaude 112d7ef8f9 feat: add UI build to build process
- Created separate build script to handle both CLI and UI building
- Added automatic UI dependency installation
- Copy built UI artifacts to dist directory

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-30 11:15:05 +08:00