feat: 增加key验证脚本

This commit is contained in:
tbphp
2025-06-07 13:42:31 +08:00
parent 119a3a6b42
commit 1feeb2c8ac
4 changed files with 359 additions and 0 deletions

View File

@@ -118,6 +118,20 @@ cp .env.example .env
| CORS | `ENABLE_CORS` | true | 是否启用 CORS |
| 连接池 | `MAX_SOCKETS` | 50 | HTTP 连接池最大连接数 |
## 🔑 密钥验证工具
项目提供了高性能的 API 密钥验证工具,支持批量验证、去重和多模型测试:
### 快速使用
```bash
# 自动选择最佳验证方式
make validate-keys
# 或直接运行
./scripts/validate-keys.py
```
## 📊 监控端点
| 端点 | 方法 | 说明 |