diff --git a/src/plugins/built_in/maizone_refactored/services/content_service.py b/src/plugins/built_in/maizone_refactored/services/content_service.py index 4761c4114..1a0ef9183 100644 --- a/src/plugins/built_in/maizone_refactored/services/content_service.py +++ b/src/plugins/built_in/maizone_refactored/services/content_service.py @@ -17,7 +17,6 @@ from src.common.logger import get_logger from src.config.api_ada_configs import TaskConfig from src.llm_models.utils_model import LLMRequest from src.plugin_system.apis import config_api, generator_api, llm_api -from src.plugin_system.apis.cross_context_api import get_chat_history_by_group_name # 导入旧的工具函数,我们稍后会考虑是否也需要重构它 from ..utils.history_utils import get_send_history @@ -88,11 +87,6 @@ class ContentService: if context: prompt += f"\n作为参考,这里有一些最近的聊天记录:\n---\n{context}\n---" - # 添加跨群聊上下文 - cross_context = await get_chat_history_by_group_name("maizone_context_group") - if cross_context and "找不到名为" not in cross_context: - prompt += f"\n\n---跨群聊参考---\n{cross_context}\n---" - # 添加历史记录以避免重复 prompt += "\n\n---历史说说记录---\n" history_block = await get_send_history(qq_account)