refactor: 移除企微Webhook机器人代码,修复VLM日志
- 删除 wechat_service.send_webhook_alarm 方法 - 删除 config.py 中 webhook_url 配置 - 简化 notify_dispatch 通知逻辑(仅保留应用消息) - 修复 vlm_service 使用项目统一 logger - 添加 VLM 调用 URL 调试日志 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -62,7 +62,6 @@ class WeChatConfig:
|
||||
enabled: bool = False
|
||||
test_uids: str = "" # 演示模式:逗号分隔的企微userid,如 "zhangsan,lisi"
|
||||
service_base_url: str = "" # H5页面公网地址,如 https://vsp.viewshanghai.com
|
||||
webhook_url: str = "" # 群机器人Webhook地址
|
||||
|
||||
|
||||
@dataclass
|
||||
@@ -171,7 +170,6 @@ def load_settings() -> Settings:
|
||||
enabled=os.getenv("WECHAT_ENABLED", "false").lower() == "true",
|
||||
test_uids=os.getenv("WECHAT_TEST_UIDS", ""),
|
||||
service_base_url=os.getenv("SERVICE_BASE_URL", ""),
|
||||
webhook_url=os.getenv("WECHAT_WEBHOOK_URL", ""),
|
||||
),
|
||||
agent=AgentConfig(
|
||||
llm_api_key=os.getenv("DASHSCOPE_API_KEY", ""),
|
||||
|
||||
Reference in New Issue
Block a user