Refactor replyer retrieval to async and add memory formatter

Changed get_replyer and related calls to async across multiple modules for proper coroutine handling. Added format_memories_bracket_style utility for memory formatting. Improved video analysis caching logic and type annotations. Updated error logging for message processing.
This commit is contained in:
雅诺狐
2025-10-05 17:48:28 +08:00
committed by Windpicker-owo
parent a9c592b203
commit 97dc145b76
7 changed files with 202 additions and 104 deletions

View File

@@ -37,6 +37,7 @@ class ReplyerManager:
target_stream = chat_stream
if not target_stream:
if chat_manager := get_chat_manager():
# get_stream 为异步,需要等待
target_stream = await chat_manager.get_stream(stream_id)
if not target_stream: