style: format webui and documentation

This commit is contained in:
Jason Xu committed 2026-09-21 14:38:30 +08:00
1 parent 683b7e9af0
commit 8e776c43b5
4 files changed
+35 -40

No files matched your search

+15 -15
View File
@@ -218,21 +218,21 @@ See [config.example.json](config.example.json) for a complete starting configura
### Keys, listeners, and routing
| Field | Default / requirement |
| ------------------------ | ------------------------------------------------------------------------- |
| `listen` | `127.0.0.1:8080`. |
| `server_keys` | At least one local key is required. |
| `zen_keys`, `go_keys` | At least one upstream key is required unless anonymous access is enabled. |
| `anonymous` | `false`. |
| `prefer` | `go`; accepts `go` or `zen`. |
| `upstream.zen` | `https://opencode.ai/zen`. |
| `upstream.go` | `https://opencode.ai/zen/go`. |
| `proxies` | Falls back to `["direct"]` when both proxy sources are empty. |
| `proxyfile` | Optional; relative paths resolve beside the configuration file. |
| `models.refresh_seconds` | `300`; minimum 1. |
| `models.protocols` | `{}`; per-model native protocol overrides. |
| `reasoning.effort` | Empty (off); `minimal`, `low`, `medium`, `high`, `xhigh`, `max`, or `none`. |
| `reasoning.effort_by_model` | `{}`; per-model overrides of `reasoning.effort`. |
| Field | Default / requirement |
| --------------------------- | --------------------------------------------------------------------------- |
| `listen` | `127.0.0.1:8080`. |
| `server_keys` | At least one local key is required. |
| `zen_keys`, `go_keys` | At least one upstream key is required unless anonymous access is enabled. |
| `anonymous` | `false`. |
| `prefer` | `go`; accepts `go` or `zen`. |
| `upstream.zen` | `https://opencode.ai/zen`. |
| `upstream.go` | `https://opencode.ai/zen/go`. |
| `proxies` | Falls back to `["direct"]` when both proxy sources are empty. |
| `proxyfile` | Optional; relative paths resolve beside the configuration file. |
| `models.refresh_seconds` | `300`; minimum 1. |
| `models.protocols` | `{}`; per-model native protocol overrides. |
| `reasoning.effort` | Empty (off); `minimal`, `low`, `medium`, `high`, `xhigh`, `max`, or `none`. |
| `reasoning.effort_by_model` | `{}`; per-model overrides of `reasoning.effort`. |
### Forced thinking level
+15 -15
View File
@@ -218,21 +218,21 @@ Key 初始化时均衡分配到代理。真实流量可以触发代理检查、K
### Key、监听地址与路由
| 字段 | 默认值或要求 |
| ------------------------ | ----------------------------------------- |
| `listen` | `127.0.0.1:8080`。 |
| `server_keys` | 至少一个本地 Key。 |
| `zen_keys`、`go_keys` | 未启用匿名模式时,至少需要一个上游 Key。 |
| `anonymous` | `false`。 |
| `prefer` | `go`;可选 `go`、`zen`。 |
| `upstream.zen` | `https://opencode.ai/zen`。 |
| `upstream.go` | `https://opencode.ai/zen/go`。 |
| `proxies` | 两个代理来源都为空时,使用 `["direct"]`。 |
| `proxyfile` | 可选;相对路径基于配置文件所在目录解析。 |
| `models.refresh_seconds` | `300`;最小为 1。 |
| `models.protocols` | `{}`;按模型 ID 覆盖原生协议。 |
| `reasoning.effort` | 空(关闭);可选 `minimal`、`low`、`medium`、`high`、`xhigh`、`max`、`none`。 |
| `reasoning.effort_by_model` | `{}`;按模型 ID 覆盖 `reasoning.effort`。 |
| 字段 | 默认值或要求 |
| --------------------------- | ----------------------------------------------------------------------------- |
| `listen` | `127.0.0.1:8080`。 |
| `server_keys` | 至少一个本地 Key。 |
| `zen_keys`、`go_keys` | 未启用匿名模式时,至少需要一个上游 Key。 |
| `anonymous` | `false`。 |
| `prefer` | `go`;可选 `go`、`zen`。 |
| `upstream.zen` | `https://opencode.ai/zen`。 |
| `upstream.go` | `https://opencode.ai/zen/go`。 |
| `proxies` | 两个代理来源都为空时,使用 `["direct"]`。 |
| `proxyfile` | 可选;相对路径基于配置文件所在目录解析。 |
| `models.refresh_seconds` | `300`;最小为 1。 |
| `models.protocols` | `{}`;按模型 ID 覆盖原生协议。 |
| `reasoning.effort` | 空(关闭);可选 `minimal`、`low`、`medium`、`high`、`xhigh`、`max`、`none`。 |
| `reasoning.effort_by_model` | `{}`;按模型 ID 覆盖 `reasoning.effort`。 |
### 强制思考强度
+3 -9
View File
@@ -1,16 +1,10 @@
{
"listen": "127.0.0.1:8080",
"server_keys": [
"change-this-local-key"
],
"zen_keys": [
"sk-your-zen-key"
],
"server_keys": ["change-this-local-key"],
"zen_keys": ["sk-your-zen-key"],
"go_keys": [],
"anonymous": false,
"proxies": [
"direct"
],
"proxies": ["direct"],
"proxyfile": "",
"upstream": {
"zen": "https://opencode.ai/zen",
+2 -1
View File
@@ -550,7 +550,8 @@
<div>
<h2>Thinking 强度</h2>
<div class="section-caption">
仅在客户端没有明确指定时生效;按模型覆盖默认值。选择“关闭”会移除未明确请求的 reasoning。
仅在客户端没有明确指定时生效;按模型覆盖默认值。选择“关闭”会移除未明确请求的
reasoning。
</div>
</div>
</div>