1. 统一为使用基于pydantic的.env环境变量管理配置
2. 全项目基于loguru进行日志管理
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user