"""AI 分析配置管理(从环境变量读取)""" import os from dotenv import load_dotenv load_dotenv() AI_API_BASE = os.getenv("AI_API_BASE", "https://openteam.oneisall.xyz/v1") AI_API_KEY = os.getenv("AI_API_KEY", "") AI_MODEL = os.getenv("AI_MODEL", "deepseek-v4-flash") AI_MAX_TOKENS = int(os.getenv("AI_MAX_TOKENS")) if os.getenv("AI_MAX_TOKENS") else None AI_TEMPERATURE = float(os.getenv("AI_TEMPERATURE")) if os.getenv("AI_TEMPERATURE") else None