Repository navigation
feat(catalog): add GPT-6.1 Terra and GPT-6.2 models to built-in catalog - #541
Closed
xcosmosbox wants to merge 1 commit into
Closed
xcosmosbox wants to merge 1 commit into
xcosmosbox wants to merge 1 commit into
Conversation
xcosmosbox
force-pushed
the
feat/model-catalog-gpt62-terra
branch
2 times, most recently
from
November 26, 2026 07:23
3757b05 to
7b544e1
Compare
Owner
|
有账号或者有上游的话可以直接拉模型的 |
xcosmosbox
force-pushed
the
feat/model-catalog-gpt62-terra
branch
from
November 26, 2026 08:35
7b544e1 to
8f4bd06
Compare
The built-in catalog still stops at revision 10 (GPT-6.1 Sol), so the
current official Codex lineup is missing gpt-6.1-terra, gpt-6.2-sol and
gpt-6.2-astra. Requests for those slugs are rejected by local validation
with model_not_found ("model_not_found: gpt-6.1-terra") even though the
upstream Codex backend accepts them.
Add a revision 11 fixture (dated 2026-11-24) that extends the revision 10
catalog with the three models, point both storage backends at it (legacy
SQLite seeding and the SeaORM reconcile path) and register the new fixture
fingerprint.
Pricing and context limits follow the official model pages:
gpt-6.1-terra in $1.00 / cached $0.05 / cache-write $1.25 / out $5.00
gpt-6.2-sol in $2.00 / cached $0.10 / cache-write $2.50 / out $10.00
gpt-6.2-astra in $8.00 / cached $0.40 / cache-write $10.00 / out $40.00
Long-context tiers (>272K input) double the input/cache rates and bill
output at 1.5x, matching the existing seed convention. All three expose
a 1,050,000 context window, 922,000 max input and 128,000 max output.
xcosmosbox
force-pushed
the
feat/model-catalog-gpt62-terra
branch
from
November 26, 2026 08:41
8f4bd06 to
2b6c7da
Compare
Contributor
Author
|
多谢指正! |
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.
问题
官方 Codex 客户端当前的模型列表已包含 GPT-6.1 Terra、GPT-6.2 Sol、GPT-6.2 Astra(见下),但仓库内置模型目录仍停留在 revision 10(2026-09-30,仅加入 GPT-6.1 Sol),导致:
POST /v1/responses携带这些模型名时被本地校验直接拒绝:model_not_found: gpt-6.1-terra官方列表(客户端截图):
对照内置目录:缺
gpt-6.1-terra、gpt-6.2-sol、gpt-6.2-astra三项。改动
crates/core/seeds/model_catalog_v2_2026_11_24.json(revision 11):在 revision 10 的 12 个模型基础上追加 3 个种子(复用同代 capabilities / 上下文窗口,price_status标为missing,待官方价格公布后再补)crates/core/src/storage/model_catalog_v2.rs(legacy SQLite 路径):新增MODEL_CATALOG_REVISION11常量与revision11_fixture(),并把fixture()指向新 fixture;新 fixture 指纹加入KNOWN_MODEL_CATALOG_SOURCE_SHA256。revision 10 的迁移 fixture 保持冻结不动crates/storage-seaorm/src/model_catalog/reconcile.rs(SeaORM 路径):reconcile_builtin_catalog的内置目录 fixture 指向 revision 11无需新增迁移文件:
seed_missing_builtin_models_v2()每次启动都会按builtin_revision补齐缺失种子(幂等INSERT OR IGNORE),已应用 138 迁移的存量库会在下次启动时自动获得这 3 个模型。验证
在自托管部署(SQLite 路径,存量库 revision 10)上实测:
builtin_revision自动推进到 11,3 个模型各生成models/model_prices/ 默认account_pool路由行,PRAGMA integrity_check= okgpt-6.1-terra、gpt-6.2-sol、gpt-6.2-astra的/v1/responses请求均返回 200/v1/models等路径无回归(本 PR 未在 CI 前本地编译;如 CI 需要,可按需补充。)