perf(chat): 使用asyncio.create_task优化异步任务处理

This commit is contained in:
Windpicker-owo
2025-10-03 01:55:21 +08:00
parent 31d03de33a
commit 67154ca78c

View File

@@ -387,7 +387,7 @@ class StreamLoopManager:
start_time = time.time() start_time = time.time()
# 直接调用chatter_manager处理流上下文 # 直接调用chatter_manager处理流上下文
results = await self.chatter_manager.process_stream_context(stream_id, context) results = await asyncio.create_task(self.chatter_manager.process_stream_context(stream_id, context))
success = results.get("success", False) success = results.get("success", False)
if success: if success: