mirror of
https://github.com/foxhui/WebAI2API.git
synced 2026-06-16 21:03:59 +08:00
docs: 更新文档
This commit is contained in:
+4
-1
@@ -63,7 +63,10 @@ VNC 显示功能需要服务以 Xvfb + VNC 模式运行。
|
||||
|
||||
### 实例管理
|
||||
|
||||
管理浏览器实例和 Worker 配置(需要重启生效)。
|
||||
- 批量管理实例代理和删除
|
||||
- 管理浏览器实例和 Worker 配置
|
||||
|
||||
> 均需要重启生效
|
||||
|
||||
## 快捷操作
|
||||
|
||||
|
||||
@@ -26,6 +26,9 @@ backend:
|
||||
failover:
|
||||
enabled: true
|
||||
maxRetries: 2
|
||||
imgDlRetry: false
|
||||
imgDlRetryMaxRetries: 2
|
||||
waitTimeout: 120000
|
||||
instances:
|
||||
- name: "browser_default"
|
||||
workers:
|
||||
@@ -156,6 +159,9 @@ browser:
|
||||
| `strategy` | string | `least_busy` | 负载均衡策略,可选:`least_busy` |
|
||||
| `failover.enabled` | boolean | `true` | 是否启用故障自动转移 |
|
||||
| `failover.maxRetries` | number | `2` | 故障转移最大重试次数 |
|
||||
| `failover.imgDlRetry` | boolean | `false` | 图片下载重试,启用后,图片/视频下载失败时会自动重试下载(不重新生成) |
|
||||
| `failover.imgDlRetryMaxRetries` | number | `2` | 下载重试次数,图片下载失败时的最大重试次数,范围 1-10 |
|
||||
| `waitTimeout` | number | `120000` | 生成等待时间,程序等待生成结果返回的最大超时时间,单位毫秒 |
|
||||
| `instances` | array | - | 浏览器实例列表,详见 [实例配置](/config/instances) |
|
||||
|
||||
### 适配器配置 (backend.adapter)
|
||||
|
||||
@@ -67,7 +67,10 @@ The VNC display feature requires the service to be running in Xvfb + VNC mode.
|
||||
|
||||
### Instance Management
|
||||
|
||||
Manage browser instance and Worker configurations (requires a restart to take effect).
|
||||
- Batch manage instance proxies and deletions
|
||||
- Manage browser instance and Worker configurations
|
||||
|
||||
> Requires a restart to take effect
|
||||
|
||||
## Quick Actions
|
||||
|
||||
|
||||
@@ -160,6 +160,9 @@ Performance optimization options for CPU-Only environments. Reduces CPU load by
|
||||
| `strategy` | string | `least_busy` | Load balancing strategy. Option: `least_busy`. |
|
||||
| `failover.enabled` | boolean | `true` | Whether to enable automatic failover. |
|
||||
| `failover.maxRetries` | number | `2` | Maximum retry attempts for failover. |
|
||||
| `failover.imgDlRetry` | boolean | `false` | Image download retry. When enabled, automatically retries downloading the image/video upon failure (without regenerating). |
|
||||
| `failover.imgDlRetryMaxRetries` | number | `2` | Download retry count. The maximum number of retry attempts when an image download fails, range 1-10. |
|
||||
| `waitTimeout` | number | `120000` | Generation wait time. The maximum timeout in milliseconds the program waits for the generation result to return. |
|
||||
| `instances` | array | - | List of browser instances. See [Instances Configuration](/en/config/instances). |
|
||||
|
||||
### Adapter Configuration (backend.adapter)
|
||||
|
||||
Reference in New Issue
Block a user