mirror of
https://git.openapi.site/https://github.com/desirecore/config-center.git
synced 2026-12-05 15:40:59 +08:00
fix(compute): 移除已退役的 Codex 订阅模型 (#135)
This commit is contained in:
18 files changed
+76
-657
No files matched your search
@@ -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'))
|
||||
})
|
||||
Reference in new issue
Block a user