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

+2
View File
@@ -54,6 +54,8 @@ Keys rotate on `余额不足,请充值`, a lapsed subscription, `Invalid API k
Whether a key can use a model depends on its group; trust the ✓ / ✕ in settings.
**Custom models.** A model Geek2API serves but the table lacks can be added by id under **Settings → Geek2API → Visible models → Custom models**: the model id (as the key's `/v1/models` lists it; not a built-in id), an optional display name, the protocol (Chat Completions by default; Messages for Claude, Responses for GPT and Grok), whether it reasons (then off / low / medium / high are offered), whether it takes images, and optionally its context window and max output (default 128000 / 32000). It appears in the picker at once, with the same key rotation and endpoint failover, and a "Custom" column under each key shows whether that key reaches it. Up to 32. A session using a removed custom model fails with an unknown model instead of switching to another one.
## Update and uninstall
The version card in **Settings → Geek2API** checks the Geek2API mirror first and GitHub when no mirror answers; update from there, then fully quit and reopen the desktop app. Before uninstalling, set web search back to "leave DSH alone" if you used it, then uninstall from the Plugins page and restart.