- 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>
Every entry point serves /dsh/latest.json and the release tarballs, synced
from GitHub; the version check asks the mirror first through the endpoint
pool and installs the mirrored tarball, with GitHub as the fallback.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
- Wallet/subscription/window exhaustion skips a key for 10 minutes instead
of disabling it; a balance read showing money brings it back. Only the
gateway's own key refusals and a used-up key cap still disable a key.
- Classify by sub2api's exact wording; a bare 401 or upstream text no
longer retires a key; 'No available accounts' is capacity, not coverage.
- Hosts keep only an https origin (no doubled /v1); timeouts and HTTP
answers no longer set a host aside; hand edits are re-probed.
- Balance: inactive subscriptions, per-plan subscription pooling, key caps
kept out of the total, rate windows shown.
- Endpoint editor no longer empties itself after Save.
- Update check reads GitHub Releases and installs the release tarball;
release workflow replaces npm publishing.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Derived from dsh-packycode-api 1.1.7 (MIT) and rebuilt for the Geek2API
(sub2api) gateway: multi-endpoint failover, /v1/usage balances with wallet
dedupe, per-key coverage from /v1/models, sub2api failure wording, a Claude
runtime switch (HTTP or local CLI), and Claude/GPT web search backends.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>