1. 统一为使用基于pydantic的.env环境变量管理配置

2. 全项目基于loguru进行日志管理
This commit is contained in:
Doiiars
2025-11-05 14:56:49 +08:00
parent 1d2e23d8c1
commit 537d682861
50 changed files with 1404 additions and 1731 deletions
+2 -2
View File
@@ -31,9 +31,9 @@ class LLMClient:
def __init__(self, api_key: str, model_name: str, base_url: Optional[str] = None):
if not api_key:
raise ValueError("Insight Engine LLM API key is required.")
raise ValueError("Insight Engine INSIGHT_ENGINE_API_KEY is required.")
if not model_name:
raise ValueError("Insight Engine model name is required.")
raise ValueError("Insight Engine INSIGHT_ENGINE_MODEL_NAME is required.")
self.api_key = api_key
self.base_url = base_url