refactor(chat): 简化SmartPrompt系统架构,移除缓存机制和依赖检查
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
"""
|
||||
默认回复生成器 - 集成SmartPrompt系统
|
||||
使用重构后的SmartPrompt系统替换原有的复杂提示词构建逻辑
|
||||
移除缓存机制,简化架构
|
||||
"""
|
||||
import traceback
|
||||
import time
|
||||
@@ -775,7 +774,7 @@ class DefaultReplyer:
|
||||
reply_message: Optional[Dict[str, Any]] = None,
|
||||
) -> Tuple[str, List[int]]:
|
||||
"""
|
||||
构建回复器上下文 - 使用重构后的SmartPrompt系统,移除缓存机制
|
||||
构建回复器上下文
|
||||
|
||||
Args:
|
||||
extra_info: 额外信息,用于补充上下文
|
||||
@@ -929,7 +928,7 @@ class DefaultReplyer:
|
||||
# 根据配置选择模板
|
||||
current_prompt_mode = global_config.personality.prompt_mode
|
||||
|
||||
# 使用重构后的SmartPrompt系统,移除缓存相关参数
|
||||
# 使用重构后的SmartPrompt系统
|
||||
prompt_params = SmartPromptParameters(
|
||||
chat_id=chat_id,
|
||||
is_group_chat=is_group_chat,
|
||||
@@ -1070,7 +1069,7 @@ class DefaultReplyer:
|
||||
|
||||
template_name = "default_expressor_prompt"
|
||||
|
||||
# 使用重构后的SmartPrompt系统 - Expressor模式,移除缓存相关参数
|
||||
# 使用重构后的SmartPrompt系统 - Expressor模式
|
||||
prompt_params = SmartPromptParameters(
|
||||
chat_id=chat_id,
|
||||
is_group_chat=is_group_chat,
|
||||
|
||||
Reference in New Issue
Block a user