Repository navigation
feat(catalog): add the current-generation models to the catalogue - #415
Merged
Merged
Conversation
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.
Summary
The catalogue was missing every current-generation model the vendors shipped in October 2026, so a user could not select them on this platform at all: the
[[models]]rows stopped at the previous flagships (zhipuglm-5.3, anthropicclaude-opus-5, openaigpt-5.6-sol, googlegemini-3.1-pro, aliyunqwen3.8-max, minimaxminimax-m3). This PR adds the nine missing rows, additively — no existing row is touched.New rows (prices verified against each vendor's official page on 2026-10-16; CNY per million tokens unless marked USD):
glm-5.3-flashclaude-sonnet-5.5gpt-6.1-solgpt-6-astragpt-6-lunagemini-3.8-flashgemini-4-argonqwen3.8-max-primeminimax-m2.7Decisions a reviewer should know about:
qwen3.8-max-primecache-hit price — the official pricing table gives no figure for it; its row only says the model "enjoys a context-cache discount", exactly as the siblingqwen3.8-flashdoes. Recorded as0(cache hit free — it under-collects) with a comment marking it as pending, rather than copying another model's ratio or guessing one.minimax-m2.7context window — neither the vendor's pricing page nor its model page publishes one. Recorded ascontext_length = 0with a comment; no value was invented.gemini-3.8-flash($0.75/$3.75 through 2026-12-31, then $1.50/$7.50) andgemini-4-argon($2.00/$10.00 through 2026-11-30, then $4.00/$20.00) record the current value and spell out both figures plus the switch date in the row comment, so the next refresh has a source of truth.gpt-6row records the Standard tier, with the tier note in the comment.glm-5.3-flashis markedvision = true— the vendor's page states native multimodality; every other new row isvision = falseper its vendor's "image understanding" column.Related Issue
Rant
2026-10-16T15:20:36.482297+08:00, keyword 【上架】 ("list these on the platform") — add the current-generation models to the catalogue. Its prerequisite, "make the four international vendors selectable when listing a key", landed as #414 (983111c); without it the anthropic / openai / google rows added here could not have been selected.Changes
config/config.example.toml— nine new[[models]]rows; the example file (which CI treats as the single source of truth) is updated in step with the changeui/js/data.js— the same nine models mirrored intoMODELS(USD rows go through the existingUSD()conversion)src/catalog_gate.rs—MODEL_COUNT15 → 24ui/index.html—data.js?v=cache-bust token bumpedTests
cargo test— 564 passed, 0 failedcargo fmt --check— cleancargo clippy --all-targets -- -D warnings— cleancatalog_gate's three rules (bidirectional model-set equality betweenconfig.example.tomlanddata.js, plan-id set equality,MARKET ⊆ MODELS) are exactly the tests that cover it;MODEL_COUNTis their positive control.Checklist
feat/…)