diff --git a/README.md b/README.md index 0b84105..890ec95 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/README.zh-CN.md b/README.zh-CN.md index 49e4c84..17fd201 100644 --- a/README.zh-CN.md +++ b/README.zh-CN.md @@ -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`。 | ### 强制思考强度 diff --git a/config.example.json b/config.example.json index 2b12bfe..03fbb59 100644 --- a/config.example.json +++ b/config.example.json @@ -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", diff --git a/webui/index.html b/webui/index.html index eb8d5a6..b4973e5 100644 --- a/webui/index.html +++ b/webui/index.html @@ -550,7 +550,8 @@