Revert "Merge branch 'think_flow_test' into main-fix"

This reverts commit 29089d7160, reversing
changes made to d03eef21de.
This commit is contained in:
SengokuCola
2025-03-25 17:10:05 +08:00
parent 29089d7160
commit 01b24d7f8c
18 changed files with 203 additions and 651 deletions

View File

@@ -143,12 +143,12 @@ class ChatManager:
if stream_id in self.streams:
stream = self.streams[stream_id]
# 更新用户信息和群组信息
stream.update_active_time()
stream = copy.deepcopy(stream)
stream.user_info = user_info
if group_info:
stream.group_info = group_info
stream.update_active_time()
await self._save_stream(stream) # 先保存更改
return copy.deepcopy(stream) # 然后返回副本
return stream
# 检查数据库中是否存在
data = db.chat_streams.find_one({"stream_id": stream_id})