优化ChatManager类中的streams返回,避免不必要的复制

This commit is contained in:
Windpicker-owo
2025-12-13 21:15:32 +08:00
parent 7211344b3c
commit 0f7416b443

View File

@@ -577,7 +577,7 @@ class ChatManager:
dict[str, ChatStream]: 包含所有聊天流的字典key为stream_idvalue为ChatStream对象
"""
return self.streams.copy()
return self.streams
@staticmethod
def _build_fields_to_save(stream_data_dict: dict) -> dict: