docs: 更新文档与代码实现保持一致

- 添加 xhigh 推理级别 (40960 tokens)
- 更新授权优先级为四级 (accounts.json > FACTORY_API_KEY > refresh_token > 客户端)
- 添加 common 模型类型说明 (Gemini, GLM 等)
- 更新 config.json 示例,添加 model_redirects/provider/user_agent 字段
- 添加 aliyun-log 依赖说明
- DOCKER_DEPLOY.md 添加阿里云日志服务环境变量说明

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
empty
2025-12-27 14:12:36 +08:00
parent c5efebb805
commit b186f9b80e
2 changed files with 61 additions and 22 deletions

View File

@@ -225,13 +225,27 @@ curl http://localhost:3000/v1/models
## 环境变量说明
### 认证配置
| 变量名 | 必需 | 优先级 | 说明 |
|--------|------|--------|------|
| `FACTORY_API_KEY` | 否 | 最高 | 固定API密钥跳过自动刷新推荐生产环境 |
| `DROID_REFRESH_KEY` | 否 | 次高 | Factory refresh token用于自动刷新 API key |
| `NODE_ENV` | 否 | - | 运行环境,默认 production |
**注意**`FACTORY_API_KEY` 和 `DROID_REFRESH_KEY` 至少配置一个
**注意**`FACTORY_API_KEY` 和 `DROID_REFRESH_KEY` 至少配置一个,或使用 `accounts.json` 多账号模式
### 阿里云日志服务配置(可选)
| 变量名 | 必需 | 说明 |
|--------|------|------|
| `ALIYUN_ACCESS_KEY_ID` | 否 | 阿里云 AccessKey ID |
| `ALIYUN_ACCESS_KEY_SECRET` | 否 | 阿里云 AccessKey Secret |
| `ALIYUN_SLS_ENDPOINT` | 否 | SLS 服务端点,如 `cn-hangzhou.log.aliyuncs.com` |
| `ALIYUN_SLS_PROJECT` | 否 | SLS 项目名称 |
| `ALIYUN_SLS_LOGSTORE` | 否 | SLS 日志库名称 |
**注意**:阿里云日志服务用于记录请求日志,便于监控和排查问题。如不需要可不配置。
## 故障排查