优化skill调用,生成相关文档说明

This commit is contained in:
2026-04-07 16:54:05 +08:00
parent 3984cffe23
commit 9b98b55060
10 changed files with 373 additions and 21 deletions

View File

@@ -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 ---

View File

@@ -204,7 +204,6 @@ class QueryOptimizer:
# 清除相关缓存
cache_manager.delete('get_conversations_paginated')
logger.info(f"批量插入 {len(conversations)} 条对话记录")
return True
except Exception as e:

View File

@@ -180,7 +180,6 @@ def uploaded_file(filename):
# ============================================================================
# 应用启动配置
# ============================================================================
# 飞书同步功能已合并到主页面,不再需要单独的路由
if __name__ == '__main__':
config = get_config()