2025-12-02 18:54:14 +08:00

27 lines
1.2 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

## 1. 实施请求响应日志记录
- [ ] 1.1 在 `DashScopeService` 中添加请求日志记录方法
- [ ] 1.2 记录完整的请求内容messages、model、fps 等参数)
- [ ] 1.3 实现 API Key 脱敏处理(只显示前几位和后几位)
- [ ] 1.4 记录完整的响应内容status_code、response body、headers
- [ ] 1.5 使用 DEBUG 级别记录完整内容INFO 级别记录摘要
- [ ] 1.6 在 `analyze_video` 方法中添加请求响应日志
- [ ] 1.7 在 `compare_videos` 方法中添加请求响应日志
- [ ] 1.8 在 Base64 编码方式调用时也记录完整日志
## 2. 配置和优化
- [ ] 2.1 检查是否需要添加配置选项控制详细日志(可选)
- [ ] 2.2 确保日志格式清晰易读(使用 JSON 格式或结构化格式)
- [ ] 2.3 处理大文件/大响应的日志记录(避免日志过大)
- [ ] 2.4 确保敏感信息不会泄露到日志中
## 3. 测试和验证
- [ ] 3.1 测试视频分析功能的日志记录
- [ ] 3.2 测试视频总结功能的日志记录
- [ ] 3.3 测试视频对比功能的日志记录
- [ ] 3.4 验证 API Key 脱敏是否正确
- [ ] 3.5 验证日志内容是否完整且可读