video-compliance-ai/CONVENTIONS.md
Your Name 3deaa7dcaa fix: 修正 AI 服务配置说明
- 明确使用 OneAPI/OneInAll 等中转服务商,不直连 AI 厂商
- 创建 CONVENTIONS.md 记录项目约定,避免误解

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-09 12:52:13 +08:00

30 lines
682 B
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.

# 项目约定与设计决策
本文档记录容易被误解的设计决策,确保开发一致性。
---
## AI 服务配置
**重要:系统使用 AI 中转服务商,不直连 AI 厂商!**
- 使用 OneAPI / OneInAll / OpenRouter 等中转服务商
- 中转服务商统一了不同 AI 厂商豆包、通义、DeepSeek 等)的接口
- 只需配置中转服务商的 API Key 和 Base URL
- 具体使用哪个底层模型,由中转服务商的模型名称决定
```python
# 正确 ✓
AI_PROVIDER = "oneapi"
AI_API_BASE_URL = "https://api.oneinall.ai/v1"
# 错误 ✗ - 不直接配置 AI 厂商
AI_PROVIDER = "doubao"
```
---
## 其他约定
(后续添加)