release: 0.2.0 — custom models, gateway context caps, free daily keys

- Custom models: add a model by id (protocol, reasoning, images, context
  window, max output) next to the built-in catalog.
- Gateway context caps: read per-model context_window from each key's
  /v1/models and narrow the catalog model to the tightest window (free
  DeepSeek group: 200K, 32K output) so DSH compacts before the cap.
- Free daily keys: show each key's expiry, flag the renewal window and
  link to https://www.geek2api.com/free-ds; the no-usable-key error points
  there too.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
大阔andClaude Opus 5.5 committed 2026-11-16 21:44:12 +08:00
1 parent 93a5fe93b4
commit a8f689e39c
21 files changed
+2161 -427

No files matched your search

+1 -1
View File
@@ -9,7 +9,7 @@ import { fakeCredentials, stubHostPool } from './helpers.mjs'
import { Config } from '../src/index.js'
test('search settings declare volatile fields accepted by DSH 0.2', () => {
for (const field of ['searchProvider', 'searchBackend', 'hiddenModels', 'apiHosts', 'claudeRuntime']) {
for (const field of ['searchProvider', 'searchBackend', 'hiddenModels', 'customModels', 'apiHosts', 'claudeRuntime']) {
assert.equal(Config.dict[field].meta.volatile, true, `${field}: DSH 0.2 otherwise rejects settings.update with no volatile fields`)
}
})