release: dsh-infstarapi 0.2.0
CI / test (push) Canceled after 0s

This commit is contained in:
Coldsmile_7 committed 2026-11-26 08:24:56 +08:00
1 parent a8f689e39c
commit c340aec110
59 files changed
+1108 -1590

No files matched your search

+3 -3
View File
@@ -53,7 +53,7 @@ test('a capped model keeps a positive compaction budget', () => {
test('the free key narrows the catalog model; a paid key alone leaves it at 1M', async () => {
const lists = {
'sk-free': [{ id: DS, context_window: 200000 }],
'sk-paid': [{ id: DS }, { id: 'claude-opus-5-5' }],
'sk-paid': [{ id: DS }, { id: 'gpt-6.1-sol' }],
}
const fetchImpl = async (url, options) => {
const key = String(options.headers.Authorization).replace('Bearer ', '')
@@ -89,6 +89,6 @@ test('the free key narrows the catalog model; a paid key alone leaves it at 1M',
assert.equal(selection.models(), selection.models(), 'an unchanged cap keeps the catalog identity')
assert.equal(reader.lifetimeOf('f').daily, true)
assert.equal(reader.lifetimeOf('p'), undefined)
const claude = selection.models().find(model => model.id === 'claude-opus-5-5')
assert.equal(claude.contextWindow, 1_000_000, 'models without a cap are untouched')
const gpt = selection.models().find(model => model.id === 'gpt-6.1-sol')
assert.equal(gpt.contextWindow, 1_050_000, 'models without a cap are untouched')
})