优化skill调用,生成相关文档说明
This commit is contained in:
@@ -106,7 +106,6 @@ class UnifiedConfig:
|
||||
"""
|
||||
|
||||
def __init__(self):
|
||||
logger.info("Initializing unified configuration from environment variables...")
|
||||
self.database = self._load_database_from_env()
|
||||
self.llm = self._load_llm_from_env()
|
||||
self.server = self._load_server_from_env()
|
||||
@@ -137,7 +136,6 @@ class UnifiedConfig:
|
||||
max_tokens=int(os.getenv("LLM_MAX_TOKENS", 2000)),
|
||||
timeout=int(os.getenv("LLM_TIMEOUT", 30))
|
||||
)
|
||||
logger.info("LLM config loaded.")
|
||||
return config
|
||||
|
||||
def _load_server_from_env(self) -> ServerConfig:
|
||||
@@ -172,7 +170,6 @@ class UnifiedConfig:
|
||||
ai_suggestion_confidence=float(os.getenv("AI_SUGGESTION_CONFIDENCE", 0.95)),
|
||||
human_resolution_confidence=float(os.getenv("AI_HUMAN_RESOLUTION_CONFIDENCE", 0.90))
|
||||
)
|
||||
logger.info("AI Accuracy config loaded.")
|
||||
return config
|
||||
|
||||
def _load_redis_from_env(self) -> RedisConfig:
|
||||
@@ -208,7 +205,6 @@ class UnifiedConfig:
|
||||
logger.warning("LLM API key is not configured. AI features may fail.")
|
||||
if self.feishu.app_id and not self.feishu.app_secret:
|
||||
logger.warning("FEISHU_APP_ID is set, but FEISHU_APP_SECRET is missing.")
|
||||
logger.info("Configuration validation passed (warnings may exist).")
|
||||
|
||||
# --- Public Getters ---
|
||||
|
||||
|
||||
Reference in New Issue
Block a user