chore: 集成 LLM 增强 — config/main/articles schema/workers + .env.example 加 Agnes 配置

This commit is contained in:
Mavis
2026-06-08 14:24:23 +08:00
parent ffd667f0dc
commit ba2298da0a
7 changed files with 48 additions and 7 deletions

View File

@@ -92,6 +92,15 @@ class Settings(BaseSettings):
domain: str = ""
acme_email: str = ""
# ===== Agnes LLM(智能增强)=====
# 留空 = 不启用 LLM 增强(翻译后只走默认排版,提示词也不读)
agnes_api_key: str = ""
agnes_base_url: str = "https://apihub.agnes-ai.com/v1"
agnes_chat_model: str = "agnes-2.0-flash"
agnes_image_model: str = "agnes-image-2.1-flash"
# 全局 LLM 调用间隔(秒),避免被限流
llm_interval_sec: float = 2.0
# ===== 内部路径(部署后可调) =====
project_root: Path = Path(__file__).resolve().parents[2]