fix: 修正 AI 服务配置说明

- 明确使用 OneAPI/OneInAll 等中转服务商,不直连 AI 厂商
- 创建 CONVENTIONS.md 记录项目约定,避免误解

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Your Name
2026-02-09 12:52:13 +08:00
co-authored by Claude Opus 4.5
parent 37ac749071
commit 3deaa7dcaa
2 changed files with 34 additions and 4 deletions
+5 -4
View File
@@ -21,10 +21,11 @@ class Settings(BaseSettings):
ALGORITHM: str = "HS256"
ACCESS_TOKEN_EXPIRE_MINUTES: int = 30
# AI 服务
AI_PROVIDER: str = "doubao" # doubao | qwen | deepseek
AI_API_KEY: str = ""
AI_API_BASE_URL: str = ""
# AI 服务(使用 OneAPI/OneInAll 等中转服务商,不直连厂商)
# 中转服务商统一了不同 AI 厂商的接口,只需配置中转商的 API
AI_PROVIDER: str = "oneapi" # oneapi | oneinall | openrouter 等中转服务商
AI_API_KEY: str = "" # 中转服务商的 API Key
AI_API_BASE_URL: str = "" # 中转服务商的 Base URL,如 https://api.oneinall.ai/v1
class Config:
env_file = ".env"