refactor(chat): 优化异步任务处理和参数传递机制

- 重构ExpressionSelector初始化,添加chat_id参数支持
- 优化StreamLoopManager中异步任务的创建和管理方式
- 简化MessageManager中的消息添加流程
- 调整Prompt中表情选择器的参数传递结构
This commit is contained in:
Windpicker-owo
2025-10-03 02:32:02 +08:00
parent 67154ca78c
commit fa9f14388a
4 changed files with 11 additions and 10 deletions

View File

@@ -515,10 +515,9 @@ class Prompt:
# 选择合适的表情
selected_expressions = await expression_selector.select_suitable_expressions_llm(
chat_history=chat_history,
current_message=self.parameters.target,
emotional_tone="neutral",
topic_type="general",
chat_id=self.parameters.chat_id,
chat_info=chat_history,
target_message=self.parameters.target,
)
# 构建表达习惯块