fix(compute): 移除已退役的 Codex 订阅模型 (#135)

This commit is contained in:
yige authored and GitHub committed 2026-11-30 02:39:54 +08:00
1 parent b049ce2c24
commit 203d87ed45
18 files changed
+76 -657

No files matched your search

+15
View File
@@ -24,3 +24,18 @@ test('provisional and historical identities cannot become automatic official mod
assert.deepEqual(ox.match.exact, ['ox-alpha', 'stealth/ox-alpha'])
assert.equal(ox.spec.extra.modelOrigin, undefined)
})
test('subscription retirements are scoped to ChatGPT sign-in and remove old presets', () => {
const codex = read('compute/providers/openai-codex.json')
const api = read('compute/providers/openai.json')
const retired = ['gpt-5.4', 'gpt-5.4-mini', 'gpt-5.3-codex-spark', 'gpt-5.5']
for (const id of retired) {
assert.ok(codex.tombstones.includes(id), id)
assert.ok(!codex.models.some(model => model.modelName === id), id)
assert.ok(!api.tombstones?.includes(id), id)
}
for (const id of ['gpt-5.4', 'gpt-5.4-mini', 'gpt-5.5']) {
assert.ok(api.models.some(model => model.modelName === id), id)
}
assert.ok(codex.models.some(model => model.modelName === 'gpt-6.1-sol'))
})