Repository navigation
Commit bb58afd
Import links v2: per-service parameters, grouped import page, builder and docs (#72)
* Import links v2: per-service parameters, grouped import page, builder and docs
The import page and the link builder now follow version 2 of the import
link: every parameter the New upstream dialog shows for the chosen service
and authentication method (service, auth, site, OAuth, Bedrock access keys,
headers, client identity, concurrency, balance source, models_only, specs,
billing, price sheet), with the same per-service rules as the app. The
page lists the receiving hosts first and the settings in the dialog's
groups; a parameter from a newer version shows that a newer ThinkWatch
Lite is needed and is passed on to the app. Proxies, AWS profiles,
aliases, routes, weights, the disabled switch and the checking-only access
token are rejected.
The Import links docs are rewritten for v2, the Lite features and
comparison pages updated, and the enterprise docs describe the Add to
ThinkWatch Lite button (Lite 2026.10.16 or later), fix the Configuration
Guide path to /guide, and note that GET /v1/models lists only the models
the calling key may use.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Import links v2.1: a link without service falls back to custom
Without `service`, the service recognized from the address is used only
when every parameter fits it; otherwise the link is a custom upstream, so
every link written for the first version stays valid (an official address
with another path, an Ollama address with a key, DeepSeek with
protocol=openai-chat). An explicit `service` stays strict. The docs say
so next to the v1 example and under `service`, the balance source is
detected automatically when omitted, and the builder's default reads
Auto-detect like the app.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Import links v2.2: plain http on private networks
`url` and `oauth_endpoint` accept plain http:// for loopback, private
IPv4 ranges (10/8, 172.16/12, 192.168/16, 100.64/10, 169.254/16), IPv6
fc00::/7 and fe80::/10, names without a dot and names ending in .local,
.lan, .internal, .intranet, .corp, .home.arpa or .localhost, so an
enterprise gateway on the company intranet can be imported. Other http
addresses stay rejected. The import page states under such a host that
the key and request content travel in plain text; the docs list the
rule, and the enterprise docs note that intranet http gateways work.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Import links: the chat preset for New API sites
A New API or One API admin can add ThinkWatch Lite to every key's chat
menu with one preset; no change to the site's code is needed.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>1 parent 2cf6839 commit bb58afd
17 files changed
Lines changed: 2015 additions & 400 deletions
File tree
- src
- components
- pages
- content
- docs-lite
- en
- zh-CN
- docs
- en
- zh-CN
- lib
Large diffs are not rendered by default.
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
| 64 | + | |
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| |||
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
| 64 | + | |
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| |||
0 commit comments